PC Review


Reply
Thread Tools Rate Thread

Disable automatic execution of Explorer windows from PROGRAM CODE

 
 
=?Utf-8?B?TS4gU2Fuc1DDqXBpbg==?=
Guest
Posts: n/a
 
      7th Jul 2006
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.
 
Reply With Quote
 
 
 
 
Wesley Vogel
Guest
Posts: n/a
 
      8th Jul 2006
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.


 
Reply With Quote
 
=?Utf-8?B?TS4gU2Fuc1DDqXBpbg==?=
Guest
Posts: n/a
 
      8th Jul 2006
In the

http://msdn.microsoft.com/library/de...toplay_reg.asp

page there is a section called: SUPPRESSING AUTORUN
P-R-O-G-R-A-M-M-A-T-I-C-A-L-L-Y
that answer exactly that question.

Thank you Wes

Did I search for that, hell!



 
Reply With Quote
 
Wesley Vogel
Guest
Posts: n/a
 
      8th Jul 2006
:-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:34D43CEB-0F50-4B28-96ED-(E-Mail Removed),
M. SansPépin <(E-Mail Removed)> hunted and pecked:
> In the
>
>

http://msdn.microsoft.com/library/de...toplay_reg.asp
>
> page there is a section called: SUPPRESSING AUTORUN
> P-R-O-G-R-A-M-M-A-T-I-C-A-L-L-Y
> that answer exactly that question.
>
> Thank you Wes
>
> Did I search for that, hell!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable message box during VBA code execution juergenkemeter Microsoft Excel Programming 2 12th Jan 2006 01:16 AM
Disable VBA code execution when loading a workbook =?Utf-8?B?Q2hhcmxlcw==?= Microsoft Excel Misc 4 14th Oct 2005 09:12 PM
where put code for automatic execution upon opening workbook? =?Utf-8?B?SWFuIEVsbGlvdHQ=?= Microsoft Excel Programming 1 17th Jun 2005 07:00 PM
Windows Explorer Remote Code Execution Vulnerability =?Utf-8?B?Q2hyaXMgR3VybGV5?= Microsoft Windows 2000 Security 0 21st Apr 2005 05:39 PM
Automatic Program Launch with Mouse - how to disable? ponsonby@att.net Windows XP New Users 1 17th Dec 2003 03:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.