Windows NT 4.0 source code leak
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.3 KiB

4 years ago
  1. /****************************************************************************/
  2. /* */
  3. /* NOTE: The original location of this file was in the (ms)video */
  4. /* subdirectory. It was moved to AVICAP when the video thunks were */
  5. /* moved to AVICAP. There is probably some spurious information. */
  6. /* */
  7. /* MSVIDEOI.H - Internal Include file for Video APIs */
  8. /* */
  9. /* Note: You must include WINDOWS.H before including this file. */
  10. /* */
  11. /* Copyright (c) 1990-1994, Microsoft Corp. All rights reserved. */
  12. /* */
  13. /****************************************************************************/
  14. #ifdef BUILDDLL
  15. #undef WINAPI
  16. #define WINAPI FAR PASCAL _loadds
  17. #endif
  18. /****************************************************************************
  19. Digital Video Driver Structures
  20. ****************************************************************************/
  21. #define MAXVIDEODRIVERS 10
  22. /****************************************************************************
  23. Globals
  24. ****************************************************************************/
  25. //extern UINT wTotalVideoDevs; // total video devices
  26. // The module handle is used in drawdib to load strings from the resource file
  27. //extern HINSTANCE ghInst; // our module handle
  28. extern SZCODE szNull[];
  29. extern SZCODE szVideo[];
  30. extern SZCODE szSystemIni[];
  31. extern SZCODE szDrivers[];
  32. /* internal video function prototypes */
  33. #ifdef _WIN32
  34. /*
  35. * don't lock pages in NT
  36. */
  37. #define HugePageLock(x, y) (TRUE)
  38. #define HugePageUnlock(x, y)
  39. #else
  40. BOOL FAR PASCAL HugePageLock(LPVOID lpArea, DWORD dwLength);
  41. void FAR PASCAL HugePageUnlock(LPVOID lpArea, DWORD dwLength);
  42. #define videoGetErrorTextW videoGetErrorText
  43. #endif
  44. /****************************************************************************
  45. ****************************************************************************/
  46. #ifdef DEBUG_RETAIL
  47. #define DebugErr(flags, sz) {static SZCODE ach[] = "AVICAP32: "sz; DebugOutput((flags) | DBF_DRIVER, ach); }
  48. #else
  49. #define DebugErr(flags, sz)
  50. #endif
  51. /****************************************************************************
  52. ****************************************************************************/
  53. #ifdef DEBUG
  54. extern int videoDebugLevel;
  55. extern void FAR CDECL dprintf(LPSTR szFormat, ...);
  56. #define DPF( _x_ ) if (videoDebugLevel >= 1) thkdprintf _x_
  57. #define DPF0( _x_ ) thkdprintf _x_
  58. #define DPF1( _x_ ) if (videoDebugLevel >= 1) thkdprintf _x_
  59. #define DPF2( _x_ ) if (videoDebugLevel >= 2) thkdprintf _x_
  60. #define DPF3( _x_ ) if (videoDebugLevel >= 3) thkdprintf _x_
  61. #define DPF4( _x_ ) if (videoDebugLevel >= 4) thkdprintf _x_
  62. #else
  63. /* debug printf macros */
  64. #define DPF( x )
  65. #define DPF0( x )
  66. #define DPF1( x )
  67. #define DPF2( x )
  68. #define DPF3( x )
  69. #define DPF4( x )
  70. #endif