Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 8th, 2006, 10:52 AM
gcfreddy gcfreddy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 1 gcfreddy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 43 sec
Reputation Power: 0
USB Flash memory arrive/remove notification

Hi everybody,

I'm developing a application to run over Windows XP embedded and have some troubles with
the usb flash memory handling.

My application needs to do some job when a USB flash memory is Removed/Inserted in any

available USB port.

I am using the Windows Messages WM_DEVICECHANGE with the flags DBT_DEVICEARRIVAL and

DBT_DEVICEREMOVECOMPLETE. It works very well after the the usb flash memory has been used in

the computer where the application run.

But, When the application is running and a flash memory is inserted by first time in the

computer, Windows sends the WM_DEVICECHANGE-DBT_DEVICEARRIVAL followed by a WM_DEVICECHANGE

-DBT_DEVICEREMOVECOMPLETE and other WM_DEVICECHANGE-DBT_DEVICEARRIVAL. In this case, the

behavior of the application is apparently wrong because it process the Device Remove message

and the flash memory is still inserted in the USB Port.

Is there any diference between the WM_DEVICECHANGE-DBT_DEVICEARRIVAL message sent by Windows

the first time that a flash memory is inserted in a computer?

Does anyone know how to identify this first WM_DEVICECHANGE-DBT_DEVICEARRIVAL?

I have another issue, sometimes take few seconds to detect the WM_DEVICECHANGE-

DBT_DEVICEARRIVAL or WM_DEVICECHANGE-DBT_DEVICEREMOVECOMPLETE. is this a isolated issue or

any of you have seen something like that?

Thanks for any help

Reply With Quote
  #2  
Old November 8th, 2007, 05:55 AM
xip_one xip_one is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 1 xip_one User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 40 sec
Reputation Power: 0
what did you do after that?

Reply With Quote
  #3  
Old November 13th, 2007, 04:22 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 10,576 micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)micky User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 3 Months 4 Weeks 1 Day 11 h 39 m 46 sec
Reputation Power: 1467
Quote:
Originally Posted by xip_one
what did you do after that?

If you have a problem, then please make new thread.
Dont dig out old threads.
__________________
Laziness is my religion and Sunday is my God

Get the Mantra!

Reply With Quote
Closed Thread

Viewing: ASP Free ForumsOtherProgramming Help > USB Flash memory arrive/remove notification


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway