Removable media autorun is enabled windows 7




















Martin Bogner. Amanda Mernin. Leigh Pearson. Mindful Living Matters. John Wardlaw. Joanne Prescott. Matt Johnston. Nicholas Powell. Ross Maidment. Beatrice Mckeown. Caroline Berkeley. Phillip Gilbert. Eric Shields. Craig Cranston. Debbie DG Certifiers. Terence Panton. Jane Robinson. 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. The NoDriveAutoRun and NoDriveTypeAutoRun values should only be modified by system administrators to change the value for the entire system for testing or administrative purposes.

Applications should not modify these values, as there is no way to reliably restore them to their original values. The first bit of the value corresponds to drive A:, the second to B:, and so on. To disable AutoRun for one or more drive letters, set the corresponding bits.

By setting the bits of this value's first byte, different drives can be excluded from working with AutoRun. The following table gives the bits and bitmask constants, that can be set in the first byte of NoDriveTypeAutoRun to disable AutoRun for a particular drive type. You must restart Windows Explorer before the changes take effect. Precaution is better than cure; it's very simple to disable autorun. Locate the Turn off Autoplay option, then right click it and choose the Edit option. Click the Apply button to complete the configuration.

Make sure to select All drives from the drop down menu of the Turn off Autoplay on… option, to disable Autorun on all drives. IT solutions for today's CPAs. For more information and to view an archive of previous Tech Tips, please visit us here. Do you have specific topics you would like to see covered in Tech Tips? Email any suggestions to communications ficpa.



0コメント

  • 1000 / 1000