IUnregisterSubdevice::UnregisterSubdevice method

The UnregisterSubdevice method deletes the registration of a subdevice that was previously registered by a call to PcRegisterSubdevice.

Syntax

NTSTATUS UnregisterSubdevice(
  PDEVICE_OBJECT DeviceObject,
  PUNKNOWN       Unknown
);

Parameters

DeviceObject

Pointer to the device object for the adapter device. This parameter must point to a system structure of type DEVICE_OBJECT.

Unknown

Pointer to the IPort interface of the port driver object that is bound to the subdevice.

Return value

UnregisterSubdevice returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code.

Remarks

For more information, see Dynamic Audio Subdevices.

Requirements

   
Target Platform Universal
Header portcls.h (include Portcls.h)
IRQL PASSIVE_LEVEL

See also

DEVICE_OBJECT

IPort

IUnregisterSubdevice

PcRegisterSubdevice