Can I disable window autoplay function programatically with C#/.NET?
问题 Does anybody know a way to deactivate the autoplay function of windows using c#/.NET? 回答1: A little summary, for all the others looking for a good way to disable/supress autoplay. So far I've found 3 methods to disable autoplay programatically: Intercepting the QueryCancelAutoPlay message Using the Registry Implementing the COM Interface IQueryCancelAutoPlay In the end I chose the 3rd method and used the IQueryCancelAutoPlay interface because the others had some signifcant disadvantages: The