USBPM_CLIENT_CONFIG_INIT function (usbpmapi.h)

Initializes a USBPM_CLIENT_CONFIG structure. The client driver must call this function before calling UsbPm_Register.

Syntax

void USBPM_CLIENT_CONFIG_INIT(
  [Out] PUSBPM_CLIENT_CONFIG            ClientConfig,
  [In]  ULONG                           AccessDesired,
  [In]  PFN_USBPM_EVENT_CALLBACK        EventCallback,
  [In]  PUSBPM_CLIENT_CONFIG_EXTRA_INFO ExtraInfo
);

Parameters

[Out] ClientConfig

A pointer to a USBPM_CLIENT_CONFIG to initialize.

[In] AccessDesired

A bitwise-OR of the flags defined by the USBPM_ACCESS_TYPE enumeration that indicates the type of access the client driver requires.

[In] EventCallback

A pointer to the EVT_USBPM_EVENT_CALLBACK callback function implemented by the client driver.

[In] ExtraInfo

A pointer to a USBPM_CLIENT_CONFIG_EXTRA_INFO structure that contains optional information such as the WDM device object.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Minimum KMDF version 1.27
Minimum UMDF version 2.27
Header usbpmapi.h