// 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 referenceNo description available.
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.
VersionVersion of this structure.
SizeSize of this structure.
DeviceContextSizeSize of the driver-defined context structure.
ReservedReserved.
ClientInitializeDeviceA pointer to the client driver's implementation of the HWN_CLIENT_INITIALIZE_DEVICE callback function.
ClientUnInitializeDeviceA pointer to the client driver's implementation of the HWN_CLIENT_UNINITIALIZE_DEVICE callback function.
ClientQueryDeviceInformationA pointer to the client driver's implementation of the HWN_CLIENT_QUERY_DEVICE_INFORMATION callback function.
ClientStartDeviceA pointer to the client driver's implementation of the HWN_CLIENT_START_DEVICE callback function.
ClientStopDeviceA pointer to the client driver's implementation of the HWN_CLIENT_STOP_DEVICE callback function.
ClientSetHwNStateA pointer to the client driver's implementation of the HWN_CLIENT_SET_STATE callback function.
ClientGetHwNStateA pointer to the client driver's implementation of the HWN_CLIENT_GET_STATE callback function.
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;
Hardware notifications support
Hardware notifications reference