Release 970824
[wine.git] / library / miscstubs.c
blobc472441c5cb0b57da0aa8e84cbf65307b6775e64
1 /*
2 * JBP (Jim Peterson <jspeter@birch.ee.vt.edu>): Lots of stubs needed for
3 * libwine.a.
4 */
6 #include <stdarg.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <string.h>
10 #include "windows.h"
11 #include "dde_mem.h"
12 #include "global.h"
13 #include "debug.h"
16 /* for windows/winproc.c */
17 void CallFrom16_long_wwwll(void) {}
18 void CallFrom32_stdcall_5(void) {}
20 extern LRESULT ColorDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
21 extern LRESULT FileOpenDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
22 extern LRESULT FileSaveDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
23 extern LRESULT FindTextDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
24 extern LRESULT MDIClientWndProc(HWND16,UINT16,WPARAM16,LPARAM);
25 extern LRESULT PrintDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
26 extern LRESULT PrintSetupDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
27 extern LRESULT ReplaceTextDlgProc(HWND16,UINT16,WPARAM16,LPARAM);
28 extern LRESULT TASK_Reschedule(void);
30 /***********************************************************************
31 * MODULE_GetWndProcEntry16 (not a Windows API function)
33 * Return an entry point from the WPROCS dll.
35 FARPROC16 MODULE_GetWndProcEntry16( char *name )
37 #define MAP_STR_TO_PROC(str,proc) if(!strcmp(name,str))return (FARPROC16)proc
38 MAP_STR_TO_PROC("ColorDlgProc",ColorDlgProc);
39 MAP_STR_TO_PROC("FileOpenDlgProc",FileOpenDlgProc);
40 MAP_STR_TO_PROC("FileSaveDlgProc",FileSaveDlgProc);
41 MAP_STR_TO_PROC("FindTextDlgProc",FindTextDlgProc);
42 MAP_STR_TO_PROC("MDIClientWndProc",MDIClientWndProc);
43 MAP_STR_TO_PROC("PrintDlgProc",PrintDlgProc);
44 MAP_STR_TO_PROC("PrintSetupDlgProc",PrintSetupDlgProc);
45 MAP_STR_TO_PROC("ReplaceTextDlgProc",ReplaceTextDlgProc);
46 MAP_STR_TO_PROC("TASK_Reschedule",TASK_Reschedule);
47 fprintf(stderr,"warning: No mapping for %s(), add one in library/miscstubs.c\n",name);
48 return NULL;