PcGetPhysicalDeviceObject function

The PcGetPhysicalDeviceObject function enables audio miniport drivers to retrieve the underlying physical device object of the audio device.

Syntax

PORTCLASSAPI NTSTATUS PcGetPhysicalDeviceObject(
  IN PDEVICE_OBJECT  pDeviceObject,
  OUT PDEVICE_OBJECT *ppPhysicalObject
);

Parameters

pDeviceObject

Pointer to the device object for the device.

ppPhysicalObject

Pointer to the physical object for the device.

Return value

The PcGetPhysicalDeviceObject function returns STATUS_SUCCESS if the function call was successful. Otherwise, it returns the appropriate error code.

Requirements

   
Minimum supported client Available starting in Windows 8.
Target Platform Universal
Header portcls.h
Library Portcls.lib
IRQL Any level

See also

Audio Port Class Functions