178{
183
184
185
188 "IID_IClassFactory) should have returned DSERR_INVALIDPARAM, "
189 "returned: %08x\n",rc);
190
191 rc = (pDllGetClassObject)(&CLSID_DirectSound, &IID_IDirectSound, (void **)(&pcf));
193 "IID_IDirectSound) should have returned E_NOINTERFACE, "
194 "returned: %08x\n",rc);
195
196 rc = (pDllGetClassObject)(&CLSID_DirectSound, &
IID_IUnknown, (
void **)(&pcf));
197 ok(rc==
DS_OK,
"DllGetClassObject(CLSID_DirectSound, "
198 "IID_IUnknown) failed: %08x\n",rc);
199
200 rc = (pDllGetClassObject)(&CLSID_DirectSound, &
IID_IClassFactory, (
void **)(&pcf));
201 ok(pcf!=0,
"DllGetClassObject(CLSID_DirectSound, IID_IClassFactory) "
202 "failed: %08x\n",rc);
203 if (pcf==0)
204 return;
205
206
207
211 "returned DSERR_INVALIDPARAM, returned: %08x\n",rc);
212
214 (void **)(&pps));
215 ok(rc==
E_NOINTERFACE,
"CreateInstance(IID_IKsPropertySet) should have "
216 "returned E_NOINTERFACE, returned: %08x\n",rc);
217
218
219 if (pDirectSoundCreate8) {
220 rc = (pDllGetClassObject)(&CLSID_DirectSound8, &
IID_IClassFactory, (
void **)(&pcf));
221 ok(pcf!=0,
"DllGetClassObject(CLSID_DirectSound8, IID_IClassFactory) "
222 "failed: %08x\n",rc);
223 if (pcf==0)
224 return;
225
226
228 (void **)(&pps));
229 ok(rc==
E_NOINTERFACE,
"CreateInstance(IID_IKsPropertySet) should have "
230 "returned E_NOINTERFACE, returned: %08x\n",rc);
231 }
232
233
234 if (pDirectSoundCaptureCreate) {
236 (void **)(&pcf));
237 ok(pcf!=0,
"DllGetClassObject(CLSID_DirectSoundCapture, IID_IClassFactory) "
238 "failed: %08x\n",rc);
239 if (pcf==0)
240 return;
241
242
244 (void **)(&pps));
245 ok(rc==
E_NOINTERFACE,
"CreateInstance(IID_IKsPropertySet) should have "
246 "returned E_NOINTERFACE,returned: %08x\n",rc);
247 }
248
249
250 if (pDirectSoundCaptureCreate8) {
252 (void **)(&pcf));
253 ok(pcf!=0,
"DllGetClassObject(CLSID_DirectSoundCapture8, "
254 "IID_IClassFactory) failed: %08x\n",rc);
255 if (pcf==0)
256 return;
257
258
260 (void **)(&pps));
261 ok(rc==
E_NOINTERFACE,
"CreateInstance(IID_IKsPropertySet) should have "
262 "returned E_NOINTERFACE, returned: %08x\n",rc);
263 }
264
265
266 if (pDirectSoundFullDuplexCreate) {
268 (void **)(&pcf));
269 ok(pcf!=0,
"DllGetClassObject(CLSID_DirectSoundFullDuplex, "
270 "IID_IClassFactory) failed: %08x\n",rc);
271 if (pcf==0)
272 return;
273
274
276 (void **)(&pps));
277 ok(rc==
E_NOINTERFACE,
"CreateInstance(IID_IKsPropertySet) should have "
278 "returned NOINTERFACE, returned: %08x\n",rc);
279 }
280
281
283 (void **)(&pcf));
284
285
287 return;
288
289
291 (void **)(&pps));
292 ok(rc==
DS_OK,
"CreateInstance(IID_IKsPropertySet) failed: %08x\n",
293 rc);
295 return;
296
297
300 &support);
302 "QuerySupport(DSPROPSETID_DirectSoundDevice, "
303 "DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION) failed: %08x\n",
304 rc);
307 trace(
" Not Supported\n");
308 return;
309 }
310
312 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: "
313 "support = 0x%x\n",support);
315 "Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: "
316 "support = 0x%x\n",support);
317
318
321 &support);
323 "QuerySupport(DSPROPSETID_DirectSoundDevice, "
324 "DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1) failed: %08x\n",
325 rc);
328 trace(
" Not Supported\n");
329 return;
330 }
331
333 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1: "
334 "support = 0x%x\n",support);
336 "Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1: "
337 "support = 0x%x\n",support);
338
339
342 &support);
344 "QuerySupport(DSPROPSETID_DirectSoundDevice, "
345 "DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A) failed: %08x\n",
346 rc);
349 trace(
" Not Supported\n");
350 return;
351 }
352
354 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A: "
355 "support = 0x%x\n",support);
357 "Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A: "
358 "support = 0x%x\n",support);
359
360
363 &support);
365 "QuerySupport(DSPROPSETID_DirectSoundDevice, "
366 "DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W) failed: %08x\n",
367 rc);
370 trace(
" Not Supported\n");
371 return;
372 }
373
375 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W: "
376 "support = 0x%x\n",support);
378 "Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W: "
379 "support = 0x%x\n",support);
380
381
384 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
385 "DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING) failed: %08x\n",
386 rc);
388 return;
389
391 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: "
392 "support = 0x%x\n",support);
394 "DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: support = "
395 "0x%x\n",support);
396
397
400 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
401 "DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A) failed: %08x\n",
402 rc);
404 return;
405
407 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A: "
408 "support = 0x%x\n",support);
410 "DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A: support = "
411 "0x%x\n",support);
412
413
416 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
417 "DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W) failed: %08x\n",
418 rc);
420 return;
421
423 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W: "
424 "support = 0x%x\n",support);
426 "DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W: support = "
427 "0x%x\n",support);
428
429
430 trace(
"*** Testing DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE ***\n");
433 &support);
434 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
435 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE) failed: %08x\n",
436 rc);
438 return;
439
441 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: "
442 "support = 0x%x\n",support);
444 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: support = 0x%x\n",support);
445
449
452
456 ok(rc==
DS_OK,
"Couldn't enumerate: 0x%x\n",rc);
457 }
458
459
460 trace(
"*** Testing DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1 ***\n");
463 &support);
464 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
465 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1) failed: %08x\n",
466 rc);
468 return;
469
471 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1: "
472 "support = 0x%x\n",support);
474 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1: support = 0x%x\n",support);
475
479
482
486 ok(rc==
DS_OK,
"Couldn't enumerate: 0x%x\n",rc);
487 }
488
489
490 trace(
"*** Testing DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A ***\n");
493 &support);
494 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
495 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A) failed: %08x\n",
496 rc);
498 return;
499
501 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A: "
502 "support = 0x%x\n",support);
504 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A: support = 0x%x\n",support);
505
509
512
516 ok(rc==
DS_OK,
"Couldn't enumerate: 0x%x\n",rc);
517 }
518
519
520 trace(
"*** Testing DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W ***\n");
523 &support);
524 ok(rc==
DS_OK,
"QuerySupport(DSPROPSETID_DirectSoundDevice, "
525 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W) failed: %08x\n",
526 rc);
528 return;
529
531 "Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W: "
532 "support = 0x%x\n",support);
534 "DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W: support = 0x%x\n",support);
535
539
542
546 ok(rc==
DS_OK,
"Couldn't enumerate: 0x%x\n",rc);
547 }
549}
static unsigned char bytes[4]
const GUID IID_IClassFactory
#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION
#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA
#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE
@ DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1
@ DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A
@ DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W
@ DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1
@ DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W
@ DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A
@ DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W
@ DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A
#define DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING
#define IKsPropertySet_Get(p, a, b, c, d, e, f, g)
static IPrintDialogCallback callback
static BOOL CALLBACK callbackW(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA data, LPVOID context)
static BOOL CALLBACK callback1(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA data, LPVOID context)
static BOOL CALLBACK callbackA(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA data, LPVOID context)
#define CLASS_E_CLASSNOTAVAILABLE