usb flash disk

  • Thread starter Thread starter Nemenyi Zoltan
  • Start date Start date
N

Nemenyi Zoltan

hello

Can somebody give me a tipp, how i can get an event on inserting a usb flash
disk device?

thanks
Nemenyi Zoltan
 
Nemenyi,

In this newsgroup is yesterday a question from steve (wab signal strenght)
that he answered today himself, probably that is with your device as well an
answer on your question.

I hope this helps?

Cor

"Nemenyi Zoltan"
 
Drive letter change notifications are automatically broadcast to all
top-level windows as WM_DEVICECHANGE messages, using DEV_BROADCAST_VOLUME.
You do not have to register to receive them. They are broadcast with event
types of DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE.

The DEV_BROADCAST_VOLUME structure will contain a dbcv_unitmask field. This
is a logical unit mask identifying one or more logical units. Each bit in
the mask corresponds to one logical drive. Bit 0 represents drive A, bit 1
represents drive B, and so on.

Marc Reinig
System Solutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top