views:

18

answers:

0

Hi,

1) I noticed Jan Axelson has some text in her book about notifications (HID is attached to or removed from the system and system informs the GUI). Does anyone have working VB6 code examples? I'm attempting to translate Axelson's VB.net code to VB6 code. I can't find RegisterDeviceNotification in user32.dll and what is the purpose of marshalling (specifically Marshal.StructureToPtr), and how can I do this in VB6?

2) Is there a way to know if a HID already has a handle to it?

Thanks!