libusbK 
3.0
Library Documentation
© 2011-2021 Travis Lee Robinson. All rights reserved.
KHOT_PARAMS Struct Reference

Hot plug parameter structure. More...

#include <libusbk.h>

Public Member Functions

VOID KUSB_API OnHotPlug (_in KHOT_HANDLE HotHandle, _in KLST_DEVINFO_HANDLE DeviceInfo, _in KLST_SYNC_FLAG PlugType)
 Hot plug event callback function invoked when notifications occur.
 
VOID KUSB_API OnPowerBroadcast (_in KHOT_HANDLE HotHandle, _in KLST_DEVINFO_HANDLE DeviceInfo, _in UINT PbtEvent)
 WM_POWERBROADCAST event callback function invoked when a power-management event has occurred.
 

Data Fields

HWND UserHwnd
 Hot plug event window handle to send/post messages when notifications occur.
 
UINT UserMessage
 WM_USER message start offset used when sending/posting messages, See details. More...
 
KHOT_FLAG Flags
 Additional init/config parameters.
 
KLST_PATTERN_MATCH PatternMatch
 File pattern matches for restricting notifcations to a single/group or all supported usb devices.
 
UCHAR z_F_i_x_e_d [2048-sizeof(KLST_PATTERN_MATCH)-sizeof(UINT_PTR)*3-sizeof(UINT)*2]
 fixed structure padding.
 

Detailed Description

Hot plug parameter structure.

[Fixed structure size of 2048 bytes]

This structure is intially passed as a parameter to HotK_Init.

Examples:
hot-plug-monitor.c.

Field Documentation

UINT UserMessage

WM_USER message start offset used when sending/posting messages, See details.

Attention
The Hotplug Event Notifier will send UserMessage+1 for arrival notifications and UserMessage+0 for removal notifications.

The documentation for this struct was generated from the following file: