Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 445 of file devname.c.
{ NTSTATUS Status; PCWSTR WideDosDeviceName = NULL; /* Check for NULL parameters */ if ( ( ! DeviceObject ) ) { DPRINT("Unexpected NULL parameter"); return STATUS_INVALID_PARAMETER; } /* Range-check */ if ( Index >= SOUND_MAX_DEVICES ) { DPRINT("Device index %d exceeds maximum", Index); return STATUS_INVALID_PARAMETER; } /* Look-up the default name based on the device type */ Status = GetDefaultSoundDeviceNameBodies(DeviceType, NULL, &WideDosDeviceName); if ( ! NT_SUCCESS(Status) ) { return Status; } DPRINT("DOS device name at %p\n", WideDosDeviceName); DPRINT("DOS device name is based on %ws\n", WideDosDeviceName); return DestroySoundDevice(DeviceObject, WideDosDeviceName, Index); }