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.

130 lines
3.3 KiB

  1. /******************************************************************************
  2. Copyright (C) Microsoft Corporation 1992. All rights reserved.
  3. Title: ntavi.h - Definitions for the portable win16/32 version of AVI
  4. This file should be included by ALL AVI components that are built for NT.
  5. It provides AVI specific portable definitions that either do not belong
  6. in PORT1632.H or are not yet included in that file.
  7. *****************************************************************************/
  8. #include <port1632.h>
  9. #if 0
  10. Windows 3.1, from which most of the AVI code comes, uses #ifdef DEBUG
  11. to control debug and retail build. Windows NT on the other hand uses
  12. DBG (as in #if DBG - note, not ifDEF) to control debug stuff.
  13. For NT, we need the following paragraph in this single common header.
  14. #endif
  15. #ifdef WIN32
  16. #undef DEBUG
  17. #if DBG
  18. #define DEBUG
  19. #define STATICFN
  20. #define STATICDT
  21. #else
  22. #define STATICFN static
  23. #define STATICDT static
  24. #endif
  25. #else // !WIN32
  26. #define STATICFN static
  27. #define STATICDT static
  28. #endif
  29. /*
  30. * mciavi\ntavi.h provides definitions that are specific to mciavi.
  31. *
  32. * this file provides general definitions that are of use throughout
  33. * avi.
  34. */
  35. #ifdef WIN32
  36. /* --- Win32 version --------------------------------------------------- */
  37. // To separate 32 bit drivers from their Win 16 equivalent we use a defined
  38. // constant to let the code know in which INI file section to look
  39. #define MCIAVI_SECTION (TEXT("MCIAVI")) // To be changed to MCIAVI32 shortly
  40. #ifdef I386
  41. // __inline provides speed improvements for x86 platforms. Unfortunately
  42. // the MIPS compiler does not have inline support. Alpha is unknown, so
  43. // we do not assume and play it safe.
  44. #define INLINE __inline
  45. #else
  46. #define INLINE
  47. #endif
  48. #define AVI_HTASK DWORD
  49. #define NPTSTR LPTSTR
  50. #if !defined(_ALPHA_) && !defined(_PPC_)
  51. typedef RGBQUAD * LPRGBQUAD;
  52. #endif
  53. //typedef HANDLE HDRVR;
  54. #define _FASTCALL
  55. #define hmemcpy memcpy
  56. #undef EXPORT
  57. #define EXPORT
  58. #define _huge
  59. #define huge
  60. #else
  61. /* --- Win16 version --------------------------------------------------- */
  62. // To separate 32 bit drivers from their Win 16 equivalent we use a defined
  63. // constant to let the code know in which INI file section to look
  64. // The WIN16 version of MMDDK.H does not have these constants defined
  65. #define DRIVERS_SECTION "Drivers"
  66. #define MCI_SECTION "MCI"
  67. #define MCIAVI_SECTION "MCIAVI"
  68. #define WIN16
  69. #define WIN31
  70. #define TEXT(a) a
  71. #define AVI_HTASK HANDLE
  72. #define NPTSTR NPSTR
  73. #define LPTSTR LPSTR
  74. #define TCHAR char
  75. #define _FASTCALL _fastcall
  76. #define INLINE __inline /* Always OK for Win 16 */
  77. #define UNALIGNED
  78. /*
  79. * define these so we can explicitly use Ansi versions for debugging etc
  80. */
  81. #define GetProfileStringA GetProfileString
  82. #define GetPrivateProfileStringA GetPrivateProfileString
  83. #define GetProfileIntA GetProfileInt
  84. #define wvsprintfA wvsprintf
  85. #define wsprintfA wsprintf
  86. #define lstrcmpiA lstrcmpi
  87. #define lstrcpyA lstrcpy
  88. #define lstrcatA lstrcat
  89. #define lstrlenA lstrlen
  90. #define LoadStringA LoadString
  91. #define OutputDebugStringA OutputDebugString
  92. #define MessageBoxA MessageBox
  93. #endif