How to disable AutoPlay (150449)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
This article was previously published under Q150449 IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows Registry SUMMARY
Windows 95 includes the AutoPlay feature that allows for automatic
activation of a program when a CD-ROM compact disc is inserted into the CD-
ROM drive.
While is is possible to programmatically disable this functionality,
Microsoft recommends that developers avoid modifying this behavior. Any
such modifications will globally affect the operating system, potentially
creating a situation where AutoPlay fails because it is left "turned off."
In this event, there is no interface available to the user to restore
normal operation.
In rare cases, however, it may be necessary for an application to
temporarily disable this feature. An example of such a program would be a
program to catalog compact discs that requires the user to insert compact
discs to be scanned in rapid succession without running any software from
the compact discs.
For cases such as this, there are two registry entries that control this
behavior, one for data compact discs and a different one for audio compact
discs.
Because there is no API or synchronization object to control access to
these registry entries, it is possible that multiple programs or multiple
instances of the same program could interfere with each other. It is the
responsibility of the programmer to take precautions against this.
Modification Type: | Minor | Last Reviewed: | 3/15/2005 |
---|
Keywords: | kbhowto kbRegistry KB150449 |
---|
|