hi,
Is there a way of alerting the user that they have left there memory stick/keydrive in the computer when they log off there computer, we use novell login system,
if it is posible what language is best to write it in
thanks in advance
the code about usb
// find usb device
SP_DEVICE_INTERFACE_DATA strtInterfaceData;
BOOL bSuccess = SetupDiEnumDeviceInterfaces(hDevInfo,NULL,&guidHID,0,
&strtInterfaceData);
if (!bSuccess)
{
m_strLog += _T("sorry,cant find usb device");
SetupDiDestroyDeviceInfoList(hDevInfo);
return;
}
//if there is usb device,then read it's directory
SP_DEVICE_INTERFACE_DETAIL_DATA strtDetailData;
if (!SetupDiGetDeviceInterfaceDetail(hDevInfo,&strtInterfaceData,
&strtDetailData,sizeof(strtDetailData),NULL,NULL))
{
AfxMessageBox(_T("error when get usb's directory"));
SetupDiDestroyDeviceInfoList(hDevInfo);
return;
}