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.

68 lines
1.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: mixer.h
  4. //
  5. // Description:
  6. // Contains user mode mixer driver declarations.
  7. //
  8. //
  9. //@@BEGIN_MSINTERNAL
  10. // Development Team:
  11. // D. Baumberger
  12. //
  13. // History: Date Author Comment
  14. // 9/16/97 v-danba File created.
  15. //
  16. //@@END_MSINTERNAL
  17. //
  18. //---------------------------------------------------------------------------
  19. //
  20. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  21. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  22. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  23. // PURPOSE.
  24. //
  25. // Copyright (C) Microsoft Corporation, 1997 - 1998 All Rights Reserved.
  26. //
  27. //---------------------------------------------------------------------------
  28. #ifndef _MIXER_H_INCLUDED_
  29. #define _MIXER_H_INCLUDED_
  30. typedef struct _MIXERINSTANCE {
  31. struct _MIXERINSTANCE FAR* Next; // Must be first member
  32. HDRVR OpenDesc_hmx;
  33. DWORD_PTR OpenDesc_dwCallback;
  34. DWORD_PTR OpenDesc_dwInstance;
  35. DWORD OpenFlags;
  36. DWORD_PTR dwKernelInstance;
  37. ULONG firstcallbackindex;
  38. #ifdef UNDER_NT
  39. LONG referencecount;
  40. #endif
  41. #ifdef DEBUG
  42. DWORD dwSig; // WAMI as seen in memory.
  43. #endif
  44. WCHAR wstrDeviceInterface[1];
  45. } MIXERINSTANCE, FAR *LPMIXERINSTANCE;
  46. extern LPMIXERINSTANCE pMixerDeviceList;
  47. VOID
  48. mxdRemoveClient(
  49. LPMIXERINSTANCE lpInstance
  50. );
  51. MMRESULT
  52. IsValidMixerInstance(
  53. LPMIXERINSTANCE lpmi
  54. );
  55. #ifdef DEBUG
  56. #define ISVALIDMIXERINSTANCE(x) IsValidMixerInstance(x)
  57. #else
  58. #define ISVALIDMIXERINSTANCE(x)
  59. #endif
  60. #endif // _MIXER_H_INCLUDED_