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.

34 lines
1.1 KiB

  1. //*****************************************************************************
  2. //
  3. // LoadAccelerator - compatibility support.
  4. //
  5. //
  6. // 23-Jul-92 NanduriR Created.
  7. //*****************************************************************************
  8. typedef struct _ACCELALIAS {
  9. struct _ACCELALIAS FAR *lpNext;
  10. struct _ACCELALIAS FAR *lpPrev;
  11. HAND16 hInst;
  12. HTASK16 hTask16;
  13. WORD f16; // WORD only for padding, could be BOOL,DWORD
  14. HAND16 h16;
  15. HAND32 h32;
  16. } ACCELALIAS, FAR *LPACCELALIAS;
  17. ULONG FASTCALL WU32LoadAccelerators(VPVOID vpData);
  18. LPACCELALIAS SetupAccelAlias(HAND16 hInstance, HAND16 hAccel16, HAND32 hAccel32, BOOL f16);
  19. BOOL DestroyAccelAlias(WORD hTask16);
  20. LPACCELALIAS FindAccelAlias(HANDLE hAccel, UINT fSize);
  21. HAND32 GetAccelHandle32(HAND16 h16);
  22. HAND16 GetAccelHandle16(HAND32 h32);
  23. HACCEL CreateAccel32(VPVOID vpAccel16, DWORD cbAccel16);
  24. HAND16 CreateAccel16(HACCEL hAccel32);
  25. #define HANDLE_16BIT 0x01
  26. #define HANDLE_32BIT 0x02
  27. #define HACCEL32(h16) GetAccelHandle32(h16)
  28. #define GETHACCEL16(h32) GetAccelHandle16(h32)