PDA

Click to See Complete Forum and Search --> : Enable / Disable Autorun


MadMarc
Nov 23rd, 1999, 03:30 AM
Hi,

Can anyone help me with a method to disable and enable the autorun of CD-Rom's via code?

I would also like to be able to check what
the user's current setting of Autorun is, and be able to restore it when exiting my prog.

Thanks

yiming
Nov 23rd, 1999, 08:14 AM
Hi,

I dont know any function that can do that...maybe u can check the registry...it should be inside there, then u can use the API to fetch from registry...hope it help

Compwiz
Nov 23rd, 1999, 08:32 AM
Registry: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer Under Value: NoDriveTypeAutoRun

MadMarc
Nov 26th, 1999, 03:10 PM
Thanks for the Info.

HexMaster
Nov 27th, 1999, 03:19 AM
ok this may be a stupid question I found that registry entry, but how do I go about disabling autorun now?

Matt