HidSpiCxDeviceConfigure function (hidspicx.h)

After calling WdfDeviceCreate, and still in its EVT_WDF_DRIVER_DEVICE_ADD callback, the client driver calls this function with a pointer to a HIDSPICX_DEVICE_CONFIG structure, specifying interfaces the class extension will use to communicate with the device. The class extension initializes its internal state, returning whether or not this is successful.

Syntax

NTSTATUS HidSpiCxDeviceConfigure(
  WDFDEVICE               Device,
  PHIDSPICX_DEVICE_CONFIG DeviceConfiguration
);

Return value

NTSTATUS indicating whether the class extension was able to successfully configure the device.

Remarks

The class extension initializes the internal state, returning whether or not this is successful.

The client driver may create a default queue before or after making this callback, in order to handle IOCTLs not handled by the class extension.

Client drivers should not attempt to acquire power policy ownership to configure power policy settings. HidClass and HidSpiCx are responsible for managing the power policy of the device.

Requirements

   
Minimum supported client Windows 11
Header hidspicx.h

See also

WdfDeviceCreate

EVT_WDF_DRIVER_DEVICE_ADD

HIDSPICX_DEVICE_CONFIG

HIDSPICX_REPORT