HWN_CLIENT_REGISTRATION_PACKET - NtDoc

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

typedef struct _HWN_CLIENT_REGISTRATION_PACKET {
  USHORT                                Version;
  USHORT                                Size;
  ULONG                                 DeviceContextSize;
  ULONG                                 Reserved;
  PHWN_CLIENT_INITIALIZE_DEVICE         ClientInitializeDevice;
  PHWN_CLIENT_UNINITIALIZE_DEVICE       ClientUnInitializeDevice;
  PHWN_CLIENT_QUERY_DEVICE_INFORMATION  ClientQueryDeviceInformation;
  PHWN_CLIENT_START_DEVICE              ClientStartDevice;
  PHWN_CLIENT_STOP_DEVICE               ClientStopDevice;
  PHWN_CLIENT_SET_STATE                 ClientSetHwNState;
  PHWN_CLIENT_GET_STATE                 ClientGetHwNState;
} HWN_CLIENT_REGISTRATION_PACKET, HWN_CLIENT_REGISTRATION_PACKET;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-hwnclx-_hwn_client_registration_packet)

_HWN_CLIENT_REGISTRATION_PACKET structure

Description

Hardware Notification client driver registration packet that is passed to the class extension when a client driver is registered. Contains version information and client driver callback functions.

Members

Version

Version of this structure.

Size

Size of this structure.

DeviceContextSize

Size of the driver-defined context structure.

Reserved

Reserved.

ClientInitializeDevice

A pointer to the client driver's implementation of the HWN_CLIENT_INITIALIZE_DEVICE callback function.

ClientUnInitializeDevice

A pointer to the client driver's implementation of the HWN_CLIENT_UNINITIALIZE_DEVICE callback function.

ClientQueryDeviceInformation

A pointer to the client driver's implementation of the HWN_CLIENT_QUERY_DEVICE_INFORMATION callback function.

ClientStartDevice

A pointer to the client driver's implementation of the HWN_CLIENT_START_DEVICE callback function.

ClientStopDevice

A pointer to the client driver's implementation of the HWN_CLIENT_STOP_DEVICE callback function.

ClientSetHwNState

A pointer to the client driver's implementation of the HWN_CLIENT_SET_STATE callback function.

ClientGetHwNState

A pointer to the client driver's implementation of the HWN_CLIENT_GET_STATE callback function.

Syntax

typedef struct _HWN_CLIENT_REGISTRATION_PACKET {
  USHORT                                Version;
  USHORT                                Size;
  ULONG                                 DeviceContextSize;
  ULONG                                 Reserved;
  PHWN_CLIENT_INITIALIZE_DEVICE         ClientInitializeDevice;
  PHWN_CLIENT_UNINITIALIZE_DEVICE       ClientUnInitializeDevice;
  PHWN_CLIENT_QUERY_DEVICE_INFORMATION  ClientQueryDeviceInformation;
  PHWN_CLIENT_START_DEVICE              ClientStartDevice;
  PHWN_CLIENT_STOP_DEVICE               ClientStopDevice;
  PHWN_CLIENT_SET_STATE                 ClientSetHwNState;
  PHWN_CLIENT_GET_STATE                 ClientGetHwNState;
} HWN_CLIENT_REGISTRATION_PACKET, HWN_CLIENT_REGISTRATION_PACKET;

See also

Hardware notifications support

Hardware notifications reference