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.

89 lines
3.1 KiB

  1. /****************************************************************************/
  2. /* */
  3. /* MSVIDEOI.H - Internal Include file for Video APIs */
  4. /* */
  5. /* Note: You must include WINDOWS.H before including this file. */
  6. /* */
  7. /* Copyright (c) 1990-1992, Microsoft Corp. All rights reserved. */
  8. /* */
  9. /****************************************************************************/
  10. #ifdef BUILDDLL
  11. #undef WINAPI
  12. #define WINAPI FAR PASCAL _loadds
  13. #endif
  14. /****************************************************************************
  15. Digital Video Driver Structures
  16. ****************************************************************************/
  17. #define MAXVIDEODRIVERS 10
  18. /****************************************************************************
  19. Globals
  20. ****************************************************************************/
  21. extern UINT wTotalVideoDevs; // total video devices
  22. // The module handle is used in drawdib to load strings from the resource file
  23. extern HINSTANCE ghInst; // our module handle
  24. #ifndef NOTHUNKS
  25. extern BOOL gfVideo32; // Do we have a 32-bit avicap.dll to talk to?
  26. extern BOOL gfICM32; // Do we have access to 32 bit ICM thunks?
  27. #endif // NOTHUNKS
  28. #ifdef WIN32
  29. //#define SZCODE TCHAR
  30. #define HTASK HANDLE
  31. #else
  32. #define SZCODE char _based(_segname("_CODE"))
  33. #endif
  34. extern SZCODE szNull[];
  35. extern SZCODE szVideo[];
  36. extern SZCODE szSystemIni[];
  37. extern SZCODE szDrivers[];
  38. /* internal video function prototypes */
  39. #ifdef WIN32
  40. /*
  41. * don't lock pages in NT
  42. */
  43. #define HugePageLock(x, y) (TRUE)
  44. #define HugePageUnlock(x, y)
  45. #else
  46. BOOL FAR PASCAL HugePageLock(LPVOID lpArea, DWORD dwLength);
  47. void FAR PASCAL HugePageUnlock(LPVOID lpArea, DWORD dwLength);
  48. #endif
  49. // for correct handling of capGetDriverDescription on NT and Chicago
  50. // this is used by the NT version of avicap.dll (16bit) but not intended for
  51. // public use, hence not in msvideo.h
  52. DWORD WINAPI videoCapDriverDescAndVer (
  53. DWORD wDriverIndex,
  54. LPSTR lpszName, UINT cbName,
  55. LPSTR lpszVer, UINT cbVer);
  56. /****************************************************************************
  57. ****************************************************************************/
  58. #ifdef DEBUG_RETAIL
  59. #define DebugErr(flags, sz) {static SZCODE ach[] = "MSVIDEO: "sz; DebugOutput((flags) | DBF_DRIVER, ach); }
  60. #else
  61. #define DebugErr(flags, sz)
  62. #endif
  63. /****************************************************************************
  64. ****************************************************************************/
  65. #ifdef DEBUG
  66. extern void FAR CDECL dprintf(LPSTR szFormat, ...);
  67. #define DPF(_x_) dprintf _x_
  68. #else
  69. #define DPF(_x_)
  70. #endif
  71.