#include "mmdrv.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ DEVICE_LIST
◆ PDEVICE_LIST
◆ AddDeviceToList()
Definition at line 111 of file utils.c.
113{
115
116 DPRINT(
"AddDeviceToList()\n");
117
120
121 if ( !pNewDevice )
122 {
125 }
126
133
135
137}
#define ERROR_NOT_ENOUGH_MEMORY
struct _DEVICE_LIST * PDEVICE_LIST
struct _DEVICE_LIST * Next
Referenced by FindDevices().
◆ FindDevices()
Definition at line 159 of file utils.c.
160{
161
162
163
164 DPRINT(
"Finding devices\n");
165
166
167
168
169
173
175 {
179 }
180
182 {
186 }
187
189 {
193 }
194
196 {
200 }
201
203 {
207 }
208
209
210
211
212
213
214
216}
MMRESULT OpenDevice(UINT DeviceType, DWORD ID, PHANDLE pDeviceHandle, DWORD Access)
BOOL AddDeviceToList(PDEVICE_LIST *pList, DWORD DeviceType, DWORD CardIndex, LPWSTR Name)
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define SOUND_MAX_DEVICE_NAME
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Referenced by AtapiAdapterControl(), AtapiFindController(), AtapiFindIsaController(), AtapiFindNativeModeController(), AtapiFindPCIController(), AtapiHwInitialize__(), AtapiStartIo__(), and UniataFindBusMasterController().
◆ FreeDeviceList()
Definition at line 140 of file utils.c.
141{
143
144 DPRINT(
"FreeDeviceList()\n");
145
147 {
150
151 if (
pDevice->DeviceInstanceData)
153
155 }
156}
#define HeapFree(x, y, z)
◆ GetDeviceCount()
Definition at line 220 of file utils.c.
221{
224
228
230}
_Must_inspect_result_ _In_ WDFCMRESLIST List
◆ OpenDevice()
Definition at line 61 of file utils.c.
63{
67
70
72 {
75 break;
78 break;
81 break;
84 break;
87 break;
88 default :
89 DPRINT(
"No Auido Device Found");
91 };
92
94
98
99 DPRINT(
"DeviceHandle == 0x%x\n", (
int)*pDeviceHandle);
100
103
105}
ACPI_SIZE strlen(const char *String)
#define INVALID_HANDLE_VALUE
DWORD TranslateStatus(void)
#define WAVE_OUT_DEVICE_NAME_U
#define MIDI_OUT_DEVICE_NAME_U
#define SOUND_MAX_DEVICES
#define MIDI_IN_DEVICE_NAME_U
#define WAVE_IN_DEVICE_NAME_U
#define AUX_DEVICE_NAME_U
#define MMSYSERR_BADDEVICEID
#define FILE_FLAG_OVERLAPPED
Referenced by FindDevices().
◆ TranslateStatus()
Definition at line 30 of file utils.c.
31{
33 {
37
40
44
47
50
53
54 default :
56 };
57}
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_FUNCTION
#define ERROR_NOT_SUPPORTED
#define ERROR_ACCESS_DENIED
#define MMSYSERR_NOTSUPPORTED
#define MMSYSERR_INVALPARAM
#define MMSYSERR_ALLOCATED
DWORD WINAPI GetLastError(void)
Referenced by AuxGetAudio(), AuxSetAudio(), OpenDevice(), and WriteMidi().
◆ DeviceList
Definition at line 27 of file utils.c.
Referenced by FindDevices(), FltpEnumerateFileSystemVolumes(), FreeDeviceList(), FxDeviceDescriptionEntry::FxDeviceDescriptionEntry(), GetDeviceCount(), FxChildListScanForChildrenCallback::Invoke(), FxChildListCreateDeviceCallback::Invoke(), IopGetInterfaceDeviceList(), IopMapPeripheralId(), IoReportResourceForDetection(), and IoReportResourceUsage().