468,733 Members | 1,618 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

Preventing Explorer Window from Displaying when Pen Drive Inserted

I am in the process of writing an application that detects the
insertion of a pen drive, and if a specific folder structure exists, it
shows a form containing data.

The problem is that when I insert the pen drive on some machines
running Windows XP, a windows explorer window appears containing the
contents of the pen drive. This window covers my application's window,
even if my application window opens a few seconds later.

How do I programmatically prevent this Explorer window from appearing?
Is there some Registry setting? Is it a specific setting for this
particular pen drive? I've tried playing around with the AutoPlay tab
in the properties dialog for that particular drive, and it doesn't seem
to help.

Thanks in advance for any help anyone can provide!
-Chad

Mar 7 '06 #1
2 1374
Hi,

Some auto play info on windows xp

http://msdn.microsoft.com/library/de...k_cookbook.asp

http://windowsxp.mvps.org/addautoplay.htm

Ken
-----------------
"Chad" <ch********@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
I am in the process of writing an application that detects the
insertion of a pen drive, and if a specific folder structure exists, it
shows a form containing data.

The problem is that when I insert the pen drive on some machines
running Windows XP, a windows explorer window appears containing the
contents of the pen drive. This window covers my application's window,
even if my application window opens a few seconds later.

How do I programmatically prevent this Explorer window from appearing?
Is there some Registry setting? Is it a specific setting for this
particular pen drive? I've tried playing around with the AutoPlay tab
in the properties dialog for that particular drive, and it doesn't seem
to help.

Thanks in advance for any help anyone can provide!
-Chad

Mar 8 '06 #2
After looking through the autoplay documentation you provided, it looks
like the problem I'm having isn't with autoplay.

I have manually set the autoplay info for my pen drive to "Take No
Action", for every file type. But when I plug in the pen drive, it
still opens the Windows Explorer folder list. There has to be
something else that is causing this to happen, since my autoplay
settings are set to take no action.
Has anybody had this problem before?

Thanks,
Chad

Mar 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by geradeaus | last post: by
3 posts views Thread by Raju V.K | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.