HwNProcessAddDevicePostDeviceCreate function (hwnclx.h)

Creates I/O queues. It should be called after the client driver’s EVT_WDF_DRIVER_DEVICE_ADD callback function is invoked and the device object has been created.

Syntax

FORCEINLINE NTSTATUS  HwNProcessAddDevicePostDeviceCreate(
  _In_ WDFDRIVER  Driver,
  _In_ WDFDEVICE  Device,
  _In_ LPGUID     DeviceGuid
);

Parameters

[in] Driver

Handle to the client drivers framework driver object.

[in] Device

Handle to the framework device object.

[in] DeviceGuid

Pointer to the GUID for the client driver. Valid values are defined in Hwn.h, which ships with Window SDK.

Return value

Returns STATUS_SUCCESS if function succeeds. Returns STATUS_INVALID_PARAMETER if corresponding client driver can't be found. Otherwise, it returns one of the error status values defined in Ntstatus.h.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1709
Minimum supported server Windows Server 2016
Target Platform Windows
Header hwnclx.h
Library Mshwnclxstub.lib
IRQL PASSIVE_LEVEL

See also

Hardware notifications support

Hardware notifications reference