Leaked source code of windows server 2003
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.

48 lines
1.6 KiB

  1. /*++ BUILD Version: 0001
  2. *
  3. * WOW v1.0
  4. *
  5. * Copyright (c) 1991, Microsoft Corporation
  6. *
  7. * WRES16.H
  8. * WOW32 16-bit resource support
  9. *
  10. * History:
  11. * Created 11-Mar-1991 by Jeff Parsons (jeffpar)
  12. --*/
  13. /* Resource table entries
  14. */
  15. #define RES_ALIASPTR 0x0001 // pbResData is 32-bit alias ptr
  16. #pragma pack(2)
  17. typedef struct _RES { /* res */
  18. struct _RES *presNext; // pointer to next res entry
  19. HMOD16 hmod16; // 16-bit handle of owning task
  20. WORD wExeVer; // exe version
  21. ULONG flState; // misc. flags (see RES_*)
  22. HRESI16 hresinfo16; // 16-bit handle of resource info
  23. HRESD16 hresdata16; // 16-bit handle of resource data
  24. LPSZ lpszResType; // type of resource
  25. PBYTE pbResData; // pointer to copy of converted resource data
  26. } RES, *PRES, **PPRES;
  27. #pragma pack()
  28. /* Function prototypes
  29. */
  30. PRES AddRes16(HMOD16 hmod16, WORD wExeVer, HRESI16 hresinfo16, LPSZ lpszType);
  31. VOID FreeRes16(PRES pres);
  32. VOID DestroyRes16(HMOD16 hmod16);
  33. PRES FindResource16(HMOD16 hmod16, LPSZ lpszName, LPSZ lpszType);
  34. PRES LoadResource16(HMOD16 hmod16, PRES pres);
  35. BOOL FreeResource16(PRES pres);
  36. LPBYTE LockResource16(PRES pres);
  37. BOOL UnlockResource16(PRES pres);
  38. DWORD SizeofResource16(HMOD16 hmod16, PRES pres);
  39. DWORD ConvertMenu16(WORD wExeVer, PBYTE pmenu32, VPBYTE vpmenu16, DWORD cb, DWORD cb16);
  40. DWORD ConvertMenuItems16(WORD wExeVer, PPBYTE ppmenu32, PPBYTE ppmenu16, VPBYTE vpmenu16);
  41. DWORD ConvertDialog16(PBYTE pdlg32, VPBYTE vpdlg16, DWORD cb, DWORD cb16);