PFNKSDEVICEQUERYCAPABILITIES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

PFNKSDEVICEQUERYCAPABILITIES Pfnksdevicequerycapabilities;

NTSTATUS Pfnksdevicequerycapabilities(
  [in]      PKSDEVICE Device,
  [in]      PIRP Irp,
  [in, out] PDEVICE_CAPABILITIES Capabilities
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ks-pfnksdevicequerycapabilities)

PFNKSDEVICEQUERYCAPABILITIES callback function

Description

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

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.

See also

KSDEVICE

KSDEVICE_DISPATCH