¡@

Home 

c++ Programming Glossary: createfile

Direct access to harddrive?

http://stackoverflow.com/questions/2702853/direct-access-to-harddrive

subject You can open a physical or logical drive using the CreateFile application programming interface API with these device names.. is you must be an administrator . You must use both the CreateFile FILE_SHARE_READ and FILE_SHARE_WRITE flags to gain access to.. of the buffer that you will need. The documentation of CreateFile also offers some clues You can use the CreateFile function to..

how to get vendor id and product id of a plugged usb device on windows

http://stackoverflow.com/questions/2935184/how-to-get-vendor-id-and-product-id-of-a-plugged-usb-device-on-windows

like you already know how to get the device handle using CreateFile . After that you call WinUsb_Initialize MSDN . That gets you..

Best way to determine if two path reference to same file in C/C++

http://stackoverflow.com/questions/562701/best-way-to-determine-if-two-path-reference-to-same-file-in-c-c

path share improve this question Open both files with CreateFile call GetFileInformationByHandle for both and compare dwVolumeSerialNumber..

Serial Comm using WriteFile/ReadFile

http://stackoverflow.com/questions/6036716/serial-comm-using-writefile-readfile

DWORD dwBytesRead int isRead false HANDLE m_hCommPort CreateFile L COM2 GENERIC_READ GENERIC_WRITE access read and write 0 share.. port_name . COM c argv 1 0 open the comm port. file CreateFile port_name GENERIC_READ GENERIC_WRITE 0 NULL OPEN_EXISTING 0..

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

u n GetLastError return 0 printf Opening volume. n drive CreateFile L c GENERIC_READ FILE_SHARE_DELETE FILE_SHARE_READ FILE_SHARE_WRITE.. NULL if drive INVALID_HANDLE_VALUE printf CreateFile u n GetLastError return 0 printf Calling FSCTL_QUERY_USN_JOURNAL..

Using std:fstream how to deny access (read and write) to the file

http://stackoverflow.com/questions/839856/using-stdfstream-how-to-deny-access-read-and-write-to-the-file

to use platform specific functions. On Windows you can use CreateFile or LockFileEx . On Linux there is flock lockf and fcntl as the..

CreateFile: direct write operation to raw disk “Access is denied” - Vista, Win7

http://stackoverflow.com/questions/8694713/createfile-direct-write-operation-to-raw-disk-access-is-denied-vista-win7

direct write operation to raw disk &ldquo Access is denied&rdquo.. is Blocking Direct Write Operations to Volumes and Disks CreateFile remarks on Physical Disks and Volumes The executable is written.. and Volumes The executable is written in C and it calls CreateFile to open an SD card that has no filesystem . The CreateFile and..

C++ std::string conversion problem on Windows

http://stackoverflow.com/questions/874433/c-stdstring-conversion-problem-on-windows

procedure bool Open std string filename ... HANDLE hFile CreateFile filename.c_str GENERIC_READ FILE_SHARE_READ NULL OPEN_EXISTING.. FILE_SHARE_READ NULL OPEN_EXISTING 0 NULL ... Error 'CreateFileW' cannot convert parameter 1 from 'const char ' to 'LPCWSTR'.. wstring or specify that you want the non wide version of CreateFile instead. That can be done either by calling CreateFileA or disabling..