All Forums
 Microsoft Windows CE
 General CE
 Detecting a USB Device
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

HBPayne

45 Posts

Posted - 16 Feb 2006 :  20:06:57  Show Profile  Email Poster
We have implemented a USB port in our product that is using a Bitsy-X module. The purpose of the USB port is for the use of USB drives for file transfer, etc.

What we are looking for is this: Is there an OS event that we can detect in software when a USB drive is inserted? We would like to stay away from polling for the drive.

We are using CE .Net 4.1, native eVC++, and Bitsy-X image version 4.10.35.

ctacke

877 Posts

Posted - 17 Feb 2006 :  09:35:19  Show Profile  Email Poster
You'd want to use a device notification. Walk through the following links to get an idea of where to begin and the APIs you'll need. The interface you'll want is PMCLASS_BLOCK_DEVICE

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/cxconDeviceNotifications.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefRequestDeviceNotifications.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/cxconInterfaceClasses.asp
Go to Top of Page

ctacke

877 Posts

Posted - 13 Mar 2006 :  10:45:49  Show Profile  Email Poster
Take a look at Topic 2052 for an example
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000