How can we receive a volume attaching notification

Posted by Benjamin on Stack Overflow See other posts from Stack Overflow or by Benjamin
Published on 2010-04-22T13:11:28Z Indexed on 2010/04/23 1:43 UTC
Read the original article Hit count: 294

When a volume is attached to file system, on Windows,
the Window explorer detects the volume and refreshes automatically.

I wonder the technique.
How do an program(include device driver) get the notification?
-Of course, it doesn’t mean a polling. I want to get an event(or a message).

I would like to get the notification when a network volume(like SMB) is attached.
Thanks in advance.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about filesystems