Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I recognize that UFD was removed by safety remove or force?

Status
Not open for further replies.

tntnypapa

Programmer
Jun 16, 2005
2
KR
Hello everybody,

I am trying to know USB mass storage was removed by safety or force as below

LRESULT CMainFrame::OnDeviceChange(WPARAM wParam, LPARAM lParam)
{
DEV_BROADCAST_HDR *pStructure;
switch(wParam)
{
case DBT_DEVICEARRIVAL:
break;
case DBT_DEVICEREMOVECOMPLETE:
pStructure = (DEV_BROADCAST_HDR *)lParam;

/////////////////////////////////////////
//I have to do .....//
/////////////////////////////////////////

break;
}

But I can't progress any more.
Any clue is heplful.
Please help me.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top