You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate HID_DEVICE_ATTRIBUTES struct (lines 20-27): A private struct is defined that shadows wdk_sys export. This is an ABI hazard if hand-declared fields diverge from the real HID struct.
WDF enum constants as raw i32 (lib.rs lines 26-28): WDF_DEFAULT and WDF_IO_QUEUE_DISPATCH_PARALLEL are both hardcoded to 0, losing type safety. Should either use proper enum values from wdk-sys or create typed constants.
Options:
Delete private HID_DEVICE_ATTRIBUTES and use wdk_sys binding
Rename to HidDeviceAttributes (Rust convention) if local definition is needed
Create properly-typed WDF constants instead of raw i32 values
Two issues in ioctl.rs:
Duplicate HID_DEVICE_ATTRIBUTES struct (lines 20-27): A private struct is defined that shadows wdk_sys export. This is an ABI hazard if hand-declared fields diverge from the real HID struct.
WDF enum constants as raw i32 (lib.rs lines 26-28): WDF_DEFAULT and WDF_IO_QUEUE_DISPATCH_PARALLEL are both hardcoded to 0, losing type safety. Should either use proper enum values from wdk-sys or create typed constants.
Options: