Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. /*++ BUILD Version: 0001
  2. *
  3. * WOW v1.0
  4. *
  5. * Copyright (c) 1991, Microsoft Corporation
  6. *
  7. * WCALL16.H
  8. * WOW32 16-bit message/callback support
  9. *
  10. * History:
  11. * Created 11-Mar-1991 by Jeff Parsons (jeffpar)
  12. * Changed 18-Aug-1992 by Mike Tricker (MikeTri) Added DOS PDB and SFT prototypes
  13. --*/
  14. /* Function prototypes
  15. */
  16. HANDLE LocalAlloc16(WORD wFlags, INT cb, HANDLE hInstance);
  17. HANDLE LocalReAlloc16(HANDLE hMem, INT cb, WORD wFlags);
  18. VPVOID LocalLock16(HANDLE hMem);
  19. BOOL LocalUnlock16(HANDLE hMem);
  20. WORD LocalSize16(HANDLE hMem);
  21. HANDLE LocalFree16(HANDLE hMem);
  22. BOOL LockSegment16(WORD wSeg);
  23. BOOL UnlockSegment16(WORD wSeg);
  24. HAND16 GetExePtr16( HAND16 hInstance );
  25. WORD ChangeSelector16( WORD wSeg );
  26. VPVOID RealLockResource16( HMEM16 hMem, PINT pcb );
  27. WORD GetModuleFileName16( HAND16 hInst, VPVOID lpszModuleName, WORD cchModuleName );
  28. BOOL CallBack16(INT iRetID, PPARM16 pParms, VPPROC vpfnProc, PVPVOID pvpReturn);
  29. VPVOID FASTCALL malloc16(UINT cb);
  30. BOOL FASTCALL free16(VPVOID vp);
  31. VPVOID FASTCALL stackalloc16(UINT cb);
  32. #ifdef DEBUG
  33. VOID FASTCALL StackFree16(VPVOID vp, UINT cb);
  34. #define stackfree16(vp,cb) StackFree16(vp,cb)
  35. #else
  36. VOID FASTCALL StackFree16(UINT cb);
  37. #define stackfree16(vp,cb) StackFree16(cb)
  38. #endif
  39. ULONG GetDosPDB16(VOID);
  40. ULONG GetDosSFT16(VOID);
  41. int WINAPI WOWlstrcmp16(LPCWSTR lpString1, LPCWSTR lpString2);
  42. /* Function prototypes for 16-bit Global memory functions are now in
  43. * \nt\public\sdk\inc\winntwow.h with slightly different names. The
  44. * old names are supported by the following defines:
  45. */
  46. #define GlobalAllocLock16 WOWGlobalAllocLock16
  47. #define GlobalLock16 WOWGlobalLockSize16
  48. #define GlobalUnlock16 WOWGlobalUnlock16
  49. #define GlobalUnlockFree16 WOWGlobalUnlockFree16