|
case WM_DEVICECHANGE:
pheadBC=(PDEV_BROADCAST_HDR)lParam;
if(wParam==DBT_DEVICEARRIVAL && pheadBC->dbch_devicetype==DBT_DEVTYP_VOLUME)
{
pVol=(PDEV_BROADCAST_VOLUME)lParam;
//TODO: Check For validity of param pVol->dbcv_unitmask
/*if(CheckLogin(pVol->dbcv_unitmask))
EndDialog(hDlg, IDC_LOGON_BUTTON);
*/
//
MessageBox(0,"Insert",0,0);
}
if(wParam==DBT_DEVICEREMOVECOMPLETE && pheadBC->dbch_devicetype==DBT_DEVTYP_VOLUME)
{
MessageBox(0,"Removed",0,0);
}
break;
11:07 PM 7/29/2004
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Have completed BSc in Computer Science & Engineering from Shah Jalal University of Science & Technology, Sylhet, Bangladesh (
SUST).
Story books (specially Masud Rana series), tourism, songs and programming is most favorite.
Blog:
Maruf Notes
http://blog.kuashaonline.com