ReactOS  0.4.14-dev-49-gfb4591c
auxMessage.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Sound System "MME Buddy" Library
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: lib/sound/mmebuddy/auxiliary/auxMessage.c
5  *
6  * PURPOSE: Provides the auxMessage exported function, as required by
7  * the MME API, for auxiliary device support.
8  *
9  * PROGRAMMERS: Andrew Greenwood (silverblade@reactos.org)
10 */
11 
12 #include "precomp.h"
13 
14 /*
15  Standard MME driver entry-point for messages relating to auxiliary devices.
16 */
17 DWORD
20  UINT DeviceId,
21  UINT Message,
22  DWORD_PTR PrivateHandle,
23  DWORD_PTR Parameter1,
24  DWORD_PTR Parameter2)
25 {
27 
29 
30  SND_TRACE(L"auxMessage - Message type %d\n", Message);
31 
32  switch ( Message )
33  {
34  case AUXDM_GETNUMDEVS :
35  {
37  break;
38  }
39 
40  case AUXDM_GETDEVCAPS :
41  {
43  DeviceId,
44  (PVOID) Parameter1,
45  Parameter2);
46  break;
47  }
48  }
49 
50  SND_TRACE(L"auxMessage returning MMRESULT %d\n", Result);
51 
53 
54  return Result;
55 }
UINT MMRESULT
Definition: mmsystem.h:962
MMRESULT MmeGetSoundDeviceCapabilities(IN MMDEVICE_TYPE DeviceType, IN DWORD DeviceId, IN PVOID Capabilities, IN DWORD CapabilitiesSize)
Definition: mmewrap.c:103
#define AUXDM_GETNUMDEVS
Definition: mmddk.h:182
VOID AcquireEntrypointMutex(IN MMDEVICE_TYPE DeviceType)
Definition: reentrancy.c:75
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
ULONG GetSoundDeviceCount(IN MMDEVICE_TYPE DeviceType)
Definition: devicelist.c:67
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD APIENTRY auxMessage(UINT DeviceId, UINT Message, DWORD_PTR PrivateHandle, DWORD_PTR Parameter1, DWORD_PTR Parameter2)
Definition: auxMessage.c:19
#define MMSYSERR_NOTSUPPORTED
Definition: mmsystem.h:104
CHAR Message[80]
Definition: alive.c:5
#define AUXDM_GETDEVCAPS
Definition: mmddk.h:183
static const WCHAR L[]
Definition: oid.c:1250
uint32_t DWORD_PTR
Definition: typedefs.h:63
unsigned int UINT
Definition: ndis.h:50
VOID ReleaseEntrypointMutex(IN MMDEVICE_TYPE DeviceType)
Definition: reentrancy.c:92
#define SND_TRACE(...)
#define APIENTRY
Definition: api.h:79