90{
92
96
100
102
103
104
106
107 if (!
IsEqualGUID(guidPropSet, &DSPROPSETID_DirectSoundDevice))
108 {
109
111 }
112
114 {
116 {
117
119 }
120
122
124 {
126 {
127 DPRINT(
"Using default capture guid\n");
129 }
130 else
131 {
132 DPRINT(
"Using default playback guid\n");
134 }
135 }
136 else
137 {
138
140 }
141
143 {
144 DPRINT(
"Unknown device guid\n");
146 }
147
148
151
152
154 {
155
158
161 {
164 }
165
169
170 }
171 else
172 {
173
176
179 {
182 }
183
187 }
188
189
193
196 }
197
198
201}
BOOL FindDeviceByGuid(LPCGUID pGuidSrc, LPFILTERINFO *Filter)
HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, LPGUID pGuidDest)
#define WideCharToMultiByte
struct _DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA
@ DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1
@ DIRECTSOUNDDEVICE_TYPE_WDM
struct _DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA * PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA
@ DIRECTSOUNDDEVICE_DATAFLOW_RENDER
@ DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
#define DSERR_INVALIDPARAM
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
#define IsEqualGUID(rguid1, rguid2)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
WCHAR DescriptionW[0x100]
DIRECTSOUNDDEVICE_TYPE Type
DIRECTSOUNDDEVICE_DATAFLOW DataFlow
WCHAR szPname[MAXPNAMELEN]
WCHAR szPname[MAXPNAMELEN]
#define E_PROP_ID_UNSUPPORTED
UINT WINAPI waveOutGetDevCapsW(UINT_PTR uDeviceID, LPWAVEOUTCAPSW lpCaps, UINT uSize)
UINT WINAPI waveInGetDevCapsW(UINT_PTR uDeviceID, LPWAVEINCAPSW lpCaps, UINT uSize)
_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