// 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
No description available.
An AVStream minidriver's AVStrMiniDeviceQueryCapabilities routine is called when an IRP_MN_QUERY_CAPABILITIES is dispatched by the device.
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.
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.
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.