-
January 29th, 2012, 08:34 AM
#1
C++ Programming - Eject USB Device
Hello!
I am programming in C++ for three years now, but I don't know Windows programming syntax.
It is two day's now how I am trying to find most adjustable C++ code. I was even trying to wrote it myself by studying some codes that might worked some other people. I am using Bloodshed Dev C++ program and compiler and I don't know whether that is important.
So I now that you can help me. So.. I need program that when I run it will just eject USB device that I just pluged in my computer. I don't need it for CD/DVD devices, I need it only for USB Removable Devices. And please I need it in C or C++ language. And is it possible to input name or letter of device and then eject it? Is it going to differend code if program will be for Windows XP and Windows Vista / 7?
Thank you.
-
February 6th, 2012, 05:15 AM
#2
Re: C++ Programming - Eject USB Device
for USB devices you may add a autorun inf file in root folder, and drop a line that says
[AutoRun] ;section
open=app ;yourprogram
eof
Then it shall start app
=====================================================================
Use it wisely and watch MTV
Last edited by john wiley; February 6th, 2012 at 05:17 AM.
-
February 6th, 2012, 05:55 AM
#3
Re: C++ Programming - Eject USB Device
Originally Posted by john wiley
for USB devices you may add a autorun inf file in root folder, and drop a line that says
[AutoRun] ;section
open=app ;yourprogram
eof
Then it shall start app
Well....
But OP asked about
Originally Posted by thanatos10011
I need program that when I run it will just eject USB device that I just pluged in my computer. I don't need it for CD/DVD devices,
Don't you understand the difference between "start app" and "eject USB device"?
Victor Nijegorodov
-
February 6th, 2012, 12:56 PM
#4
Re: C++ Programming - Eject USB Device
Last time I made something similar I found this article http://www.codeproject.com/Articles/...r-Safe-Removal to be very useful.
Tags for this Thread
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
|