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