¡@

Home 

c++ Programming Glossary: driveletter

Find and eject a USB device based on its VID/PID

http://stackoverflow.com/questions/4065473/find-and-eject-a-usb-device-based-on-its-vid-pid

return false Eject the given drive. void ejectDrive TCHAR driveletter TCHAR devicepath 16 _tcscpy devicepath _T . devicepath 4 driveletter.. TCHAR devicepath 16 _tcscpy devicepath _T . devicepath 4 driveletter DWORD dwRet 0 HANDLE hVol CreateFile devicepath GENERIC_READ.. drive letter and check if it is our device. for TCHAR driveletter _T 'A' driveletter _T 'Z' driveletter We are only interested..