c++ Programming Glossary: file_share_write
Direct access to harddrive? http://stackoverflow.com/questions/2702853/direct-access-to-harddrive . You must use both the CreateFile FILE_SHARE_READ and FILE_SHARE_WRITE flags to gain access to the drive. Once the logical or physical..
Using IOCTL_MOUNTMGR_QUERY_POINTS http://stackoverflow.com/questions/3012828/using-ioctl-mountmgr-query-points CreateFile MOUNTMGR_DOS_DEVICE_NAME 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hMountMgr INVALID_HANDLE_VALUE.. 0 hDevice CreateFile szDeviceName 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hDevice INVALID_HANDLE_VALUE..
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 hDrive CreateFile pspdidd DevicePath 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hDrive INVALID_HANDLE_VALUE continue.. dwRet 0 HANDLE hVol CreateFile devicepath GENERIC_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hVol INVALID_HANDLE_VALUE return.. HANDLE hVolume CreateFile devicepath 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if INVALID_HANDLE_VALUE hVolume..
How can I detect only deleted, changed, and created files on a volume? http://stackoverflow.com/questions/7421440/how-can-i-detect-only-deleted-changed-and-created-files-on-a-volume L c GENERIC_READ FILE_SHARE_DELETE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_ALWAYS FILE_FLAG_NO_BUFFERING NULL if drive INVALID_HANDLE_VALUE..
List Of Physical Storage Devices win32 C++ http://stackoverflow.com/questions/7584627/list-of-physical-storage-devices-win32-c n volName HANDLE hVol CreateFile volName 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hVol INVALID_HANDLE_VALUE continue..
|