How to Enable or Disable Automatically Running CD-ROMs
http://support.microsoft.com/kb/155217
Autorun.inf Entries
http://msdn.microsoft.com/library/de...oplay_cmds.asp
Enabling and Disabling AutoRun
http://msdn.microsoft.com/library/de...toplay_reg.asp
Click on the tabs to see more
http://search.msdn.microsoft.com/sea...ry=Autorun.inf
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:F2C605D4-C3CD-4061-997F-(E-Mail Removed),
M. SansPépin <(E-Mail Removed)> hunted and pecked:
> I wrote a program in Delphi ,but languge is not relevant that could be
> Visual C++ or else, and the program ask for CD's (my data stuff no music
> cd's or else) but the Explorer Window opens when I insert a cd in the
> drive it's normal behavior of windows. I know how to deactivate the
> automatic execution outside a program with the SHIFT key and by modifying
> the register key (PERMANENT MODIFICATION NOT GOOD) but I want to do it
> inside program code and only for the time my program runs. As an example
> take Microsoft Flight Simulator installation program it ask you many cd's
> but never the Explorer Windows appears and no permanent modifications are
> made to Windows there must be a call to a WinAPI function to do that or
> there is an event the catch that is emitted by the CD drive when we close
> it with a disk inside.
>
> Thank you.