Disk that can be removed from the drive such as a floppy disk or USB flash drive. Disk that cannot be removed from drive usually a hard disk. In the article you can also read how to enable or disable AutoRun for specific drive letters by using another registry subkey value.
Hexadecimal values In this article we have used hexadecimal numbers instead of decimal numbers. There are a variety of situations where AutoRun may need to be suppressed programmatically.
Two examples are:. In either case, you will normally not want to launch another application while the original is in progress. However, it is usually preferable to handle this operation programmatically rather than depending on the user. With systems that have Shell version 4.
Your application can respond to this message to suppress AutoRun. This approach is used by system utilities such as the Open common dialog box to disable AutoRun.
The following code fragments illustrate how to set up and handle this message. Your application must be running in the foreground window. Your application's window must be in the foreground to receive this message. The following code fragment illustrates how to use this message to disable AutoRun. For example, the following sample dialog box procedure cancels AutoRun when it receives a "QueryCancelAutoPlay" message. The first value disables AutoRun for specified drive letters and the second disables AutoRun for a class of drives.
If either of these values is set to disable AutoRun for a particular device, it will be disabled. See the Knowledge Base article How to disable the Autorun functionality in Windows for more information on disabling AutoRun functionality. This article lists the different updates that you must have installed to correctly disable the Autorun functionality. Editing the registry incorrectly can cause system errors, and there is no undo function. Before editing your registry, create a backup of the current registry state.
If something goes wrong, you can restore the registry to this state, to try to fix the problem. For more information, see: How to back up and restore the Windows registry. If the My Autorun or AutoPlay feature still does not work after following the above recommendations and you are running Microsoft Windows 95 or Windows 98, try the below solution. Before editing your Microsoft Windows registry, we recommend you create a backup of the entire registry. Any improper registry changes can cause the operating system to malfunction.
Only proceed if you're confident in what you are doing, and are prepared to restore the registry if necessary. Once in the Explorer folder, double-click the entry NoDriveTypeAutoRun if present and change the value to "95 00 00 00". Once the above is completed, exit Regedit and reboot the computer.
0コメント