I have a program developed in WinForms/C# that watches for SD cards to be inserted into the computer and then does things with them. I want to disable the autoplay window when my program is running. Right now the window loads and covers over my own dialog boxes, thus confusing users when things disappear. How can I disable autoplay programatically in C#? The solution needs to work with Windows XP, Vista, and 7.