OracleGuy





Remember me

[Register]

Previous Posts By Category

View Blog

You are viewing one specific blog entry. If you'd like to view the latest 6 entries, click here.

Hot Plug

On most Unix-based operating systems it is possible to configure auto mount support. What this does is when new media such as a CD or USB drive is plugged in; it automatically mounts it and creates a shortcut icon on the desktop. Then once the device is un-mounted and removed, the icon disappears.

On Windows however there is no such functionality to automatically create and remove icons. So after a friend wanted to write a program to add that functionality but is much to busy to write a 400 line program, I decided to write it.

The program is fairly small; the memory footprint is around 4MB. You can head over to the project page to download it. I have included 32 and 64 bit versions of the program in the archive. This program does not poll for new devices; it listens for specific Windows API messages that get broadcast to all programs when a new device is connected. Until I did the research for this program I didn't realize that happened.

It should pick up on any removable devices that are inserted such as CD/DVD discs or USB jump drives. I have debugged the program as much as I could and shouldn't have any issues. However if you do have issues, please let me know through the contact page on the site here. If the program doesnít load you might need to update your C++ runtime libraries from here. I didnít feel it necessary to wrap the program in a setup utility which would make the manual runtime update unnecessary.

Posted on: Jun 2, 2008 at 9:18 pm - (0) comments.

View past entries - OracleBlog Version 1.0.005