PFNKSDEVICE - NtDoc

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

PFNKSDEVICE Pfnksdevice;

NTSTATUS Pfnksdevice(
  [in] PKSDEVICE Device
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

PFNKSDEVICE callback function

Description

An AVStream minidriver's AVStrMiniDevicePostStart routine is called when AVStream performs post-PnP-start processing. Use it to load drivers at start time, for example. Such events then will occur in the context of a worker thread after PnP start.

Parameters

Device [in]

Pointer to a KSDEVICE structure describing the device for which the IRP_MN_START_DEVICE request was sent.

Return value

Should return STATUS_SUCCESS or the error code that was returned from the attempt to perform the operation. If this routine returns failure, any pending IRP_MJ_CREATE requests between the IRP_MN_START_DEVICE request and the IRP_MN_STOP_DEVICE request will be failed. Do not return STATUS_PENDING.

Remarks

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

This routine is optional.

See also

KSDEVICE_DISPATCH