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. /****************************************************************************
  2. thunks.h
  3. Contains definitions for thunking msvideo.dll from 16bit to 32bit
  4. Copyright (c) Microsoft Corporation 1993. All rights reserved
  5. ****************************************************************************/
  6. //
  7. // NOTE - 32bit handles have 0x8000 'or'ed in - this makes a BIG ASSUMPTION
  8. // about how handles are generated on the 32-bit side. We ASSUME here
  9. // that :
  10. //
  11. // 32bit msvideo.dll always uses OpenDriver to create handles
  12. //
  13. // The OpenDriver returns indices into its table (ie small positive
  14. // numbers).
  15. //
  16. #define Is32bitHandle(h) (((h) & 0x8000) != 0)
  17. #define Make32bitHandle(h) ((h) | 0x8000)
  18. #define Map32bitHandle(h) ((h) & 0x7FFF)
  19. //
  20. // Functions to link and unlink to 32-bit side
  21. void _loadds FAR UnregisterDLL(void);
  22. BOOL _loadds FAR RegisterDLL(void);
  23. //
  24. // The following functions generate calls to the 32-bit side
  25. //
  26. #ifdef _INC_MSVIDEO
  27. DWORD FAR PASCAL videoMessage32(HVIDEO hVideo, UINT msg, DWORD dwP1, DWORD dwP2);
  28. DWORD FAR PASCAL videoGetNumDevs32(void);
  29. DWORD FAR PASCAL videoClose32(HVIDEO hVideo);
  30. DWORD FAR PASCAL videoOpen32(LPHVIDEO lphVideo, DWORD dwDeviceID, DWORD dwFlags);
  31. DWORD FAR PASCAL videoGetDriverDesc32(DWORD wDriverIndex,
  32. LPSTR lpszName, short cbName,
  33. LPSTR lpszVer, short cbVer);
  34. #endif // _INC_MSVIDEO
  35. #ifdef _INC_COMPMAN
  36. BOOL FAR PASCAL ICInfo32(DWORD fccType, DWORD fccHandler, ICINFO FAR * lpicInfo);
  37. LRESULT FAR PASCAL ICSendMessage32(DWORD hic, UINT msg, DWORD dwP1, DWORD dwP2);
  38. DWORD FAR PASCAL ICOpen32(DWORD fccType, DWORD fccHandler, UINT wMode);
  39. LRESULT FAR PASCAL ICClose32(DWORD hic);
  40. #endif // _INC_COMPMAN
  41.