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.

129 lines
3.1 KiB

4 years ago
  1. /**********************************************************************
  2. Copyright (C) 1992-1993 Microsoft Corporation. All Rights Reserved.
  3. mmcompat.h
  4. DESCRIPTION:
  5. Win95 Multimedia definitions, structures, and functions
  6. not currently supported in NT 4.0
  7. *********************************************************************/
  8. #ifndef _MMCOMPAT_
  9. #define _MMCOMPAT_
  10. #define __segname(a)
  11. #define GlobalSmartPageLock(a) (TRUE)
  12. #define GlobalSmartPageUnlock(a) (TRUE)
  13. #define wmmMIDIRunOnce()
  14. //
  15. // Note: Temporary definitions, please remove when mmddk.h and mmsystem.h
  16. // have been updated to new standard !!!
  17. //
  18. // Should be defined in <mmddk.h>
  19. #ifndef DRV_QUERYDRVENTRY
  20. #define DRV_QUERYDRVENTRY (DRV_RESERVED + 1)
  21. #endif
  22. #ifndef DRV_QUERYNAME
  23. #define DRV_QUERYNAME (DRV_RESERVED + 3)
  24. #endif
  25. #ifndef DRV_F_ADD
  26. #define DRV_F_ADD 0x00000000L
  27. #endif
  28. #ifndef DRV_F_REMOVE
  29. #define DRV_F_REMOVE 0x00000001L
  30. #endif
  31. #ifndef DRV_F_CHANGE
  32. #define DRV_F_CHANGE 0x00000002L
  33. #endif
  34. #ifndef DRV_F_PROP_INSTR
  35. #define DRV_F_PROP_INSTR 0x00000004L
  36. #endif
  37. #ifndef DRV_F_NEWDEFAULTS
  38. #define DRV_F_NEWDEFAULTS 0x00000008L
  39. #endif
  40. #ifndef DRV_F_PARAM_IS_DEVNODE
  41. #define DRV_F_PARAM_IS_DEVNODE 0x10000000L
  42. #endif
  43. #ifndef MODM_STRMDATA
  44. #define MODM_STRMDATA 14
  45. #endif
  46. #ifndef MODM_GETPOS
  47. #define MODM_GETPOS 17
  48. #endif
  49. #ifndef MODM_PAUSE
  50. #define MODM_PAUSE 18
  51. #endif
  52. #ifndef MODM_RESTART
  53. #define MODM_RESTART 19
  54. #endif
  55. #ifndef MODM_STOP
  56. #define MODM_STOP 20
  57. #endif
  58. #ifndef MODM_PROPERTIES
  59. #define MODM_PROPERTIES 21
  60. #endif
  61. #ifndef MODM_RECONFIGURE
  62. #define MODM_RECONFIGURE (MODM_USER+0x0768)
  63. #endif
  64. // Should be defined in <mmsystem.h>
  65. #ifndef MIDI_IO_PACKED
  66. #define MIDI_IO_PACKED 0x00000000
  67. #endif
  68. #ifndef MIDI_IO_COOKED
  69. #define MIDI_IO_COOKED 0x00000002L
  70. #endif
  71. #ifndef MIDI_IO_CONTROL
  72. #define MIDI_IO_CONTROL 0x00000008L
  73. #endif
  74. #ifndef MIDI_IO_SHARED
  75. #define MIDI_IO_SHARED 0x00008000L
  76. #endif
  77. #ifndef MHDR_SENDING
  78. #define MHDR_SENDING 0x00000020L
  79. #endif
  80. #ifndef MHDR_SHADOWHDR
  81. #define MHDR_SHADOWHDR 0x00002000L
  82. #endif
  83. /* MIDI data block header */
  84. #ifndef MIDIHDR31
  85. /* 3.1 style MIDIHDR for parameter validation */ // ;internal
  86. typedef struct midihdr31_tag { // ;internal
  87. LPSTR lpData; /* pointer to locked data block */ // ;internal
  88. DWORD dwBufferLength; /* length of data in data block */ // ;internal
  89. DWORD dwBytesRecorded; /* used for input only */ // ;internal
  90. DWORD dwUser; /* for client's use */ // ;internal
  91. DWORD dwFlags; /* assorted flags (see defines) */ // ;internal
  92. struct midihdr_tag FAR *lpNext; /* reserved for driver */ // ;internal
  93. DWORD reserved; /* reserved for driver */ // ;internal
  94. } MIDIHDR31, *PMIDIHDR31, NEAR *NPMIDIHDR31, FAR *LPMIDIHDR31; // ;internal
  95. #endif // MIDIHDR31
  96. #endif // end #ifndef _MMCOMPAT_