|
-
Jan 17th, 2025, 11:04 AM
#4
Re: Detect when a USB Token with digital signature is insert or remove
If, when connected, it's in the Device Manager under the "Smart cards" category, then you'd use RegisterDeviceNotification with DBT_DEVTYP_DEVICEINTERFACE and DEVICE_NOTIFY_ALL_INTERFACE_CLASSES, then WM_DEVICECHANGE to detect DBT_DEVICEARRIVAL/DBT_DEVICEREMOVECOMPLETE and be looking for a device with the class guid {990A2BD7-E738-46C7-B26F-1CF8FB9F1391}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|