AVStrMiniDeviceQueryCapabilities routine

An AVStream minidriver's AVStrMiniDeviceQueryCapabilities routine is called when an IRP_MN_QUERY_CAPABILITIES is dispatched by the device.

Syntax


PFNKSDEVICEQUERYCAPABILITIES AVStrMiniDeviceQueryCapabilities;

NTSTATUS AVStrMiniDeviceQueryCapabilities(
  _In_    PKSDEVICE            Device,
  _In_    PIRP                 Irp,
  _Inout_ PDEVICE_CAPABILITIES Capabilities
)
{ ... }

Parameters

Device [in]

Pointer to the KSDEVICE that dispatched the IRP_MN_QUERY_CAPABILITIES.

Irp [in]

The IRP_MN_QUERY_CAPABILITIES issued by Device.

Capabilities [in, out]

Pointer to the DEVICE_CAPABILITIES structure that describes PnP and Power capabilities of Device.

Return value

Should return STATUS_SUCCESS or the error code that was returned from the attempt to perform the operation. Return success if providing query capabilities. If not, return an appropriate error code. Do not return STATUS_PENDING.

Remarks

The minidriver specifies this routine's address in the QueryCapabilities member of its KSDEVICE_DISPATCH structure.

This routine is called when an IRP_MN_QUERY_CAPABILITIES is dispatched by the device. It will usually be provided by minidrivers that need to supply information regarding power management capabilities. This routine is optional.

Requirements

Target platform

Desktop

Version

Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.

Header

Ks.h (include Ks.h)

IRQL

PASSIVE_LEVEL (See Remarks section)

See also

KSDEVICE_DISPATCH
KSDEVICE

 

 

Send comments about this topic to Microsoft

Show: