WHAT'S NEW with version 0.1.0: - Integrated patches from Alexandre. - Minor bug fix in if1632.S WHAT'S NEW with version 0.0.5: - Patches from Alexandre Julliard. Some integration with Tcl. - Generic interface for callback procedures. This will allow callbacks into DLLs. - MakeProcInstance() has been implemented but untested. WHAT'S NEW with version 0.0.4: - Eric Youngdale modified wine.c and selector.c to allow loading of Windows DLLs. - Added global memory allocation routines (GlobalAlloc, GlobalFree, and GlobalLock) - Bitmap resource loading into global memory.
29 lines
635 B
C
29 lines
635 B
C
/* $Id$
|
|
*/
|
|
/*
|
|
* Copyright Robert J. Amstadt, 1993
|
|
*/
|
|
|
|
#ifndef CALLBACK_H
|
|
#define CALLBACK_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
|
|
#define CALLBACK_SIZE_WORD 0
|
|
#define CALLBACK_SIZE_LONG 1
|
|
|
|
extern int CallTo16(unsigned int csip, unsigned short ds);
|
|
extern int CallBack16(void *func, int n_args, ...);
|
|
|
|
|
|
/*
|
|
* Windows procedure calling:
|
|
* f(a, b, c, d)
|
|
* wndprocfunc(HWND hwnd, WORD message, WORD wParam, LONG lParam)
|
|
*/
|
|
#define CALLWNDPROC(f, a, b, c, d) \
|
|
CallBack16((f), 4, CALLBACK_SIZE_WORD, (a), CALLBACK_SIZE_WORD, (b), \
|
|
CALLBACK_SIZE_WORD, (c), CALLBACK_SIZE_LONG, (d))
|
|
|
|
#endif /* CALLBACK_H */
|