c++ Programming Glossary: open_existing
getting error code 998 Invalid access to memory location when trying to read from named pipe http://stackoverflow.com/questions/11853478/getting-error-code-998-invalid-access-to-memory-location-when-trying-to-read-fro pipeName.c_str GENERIC_WRITE GENERIC_READ 2 NULL OPEN_EXISTING NULL NULL BOOL bWrite WriteFile hPipe message size bytesWritten..
Load an X509 PEM file into Windows CryptoApi http://stackoverflow.com/questions/1231178/load-an-x509-pem-file-into-windows-cryptoapi the file hFile CreateFileA c pub.pem GENERIC_READ 0 NULL OPEN_EXISTING FILE_ATTRIBUTE_NORMAL NULL if hFile INVALID_HANDLE_VALUE fprintf..
communication between c++ and c# through pipe http://stackoverflow.com/questions/1906561/communication-between-c-and-c-sharp-through-pipe hFile CreateFile L . pipe BvrPipe GENERIC_WRITE 0 NULL OPEN_EXISTING 0 NULL strcpy szPipeUpdate Data from Named Pipe client for..
Resolving RVA's for Import and Export tables within a PE file http://stackoverflow.com/questions/2975639/resolving-rvas-for-import-and-export-tables-within-a-pe-file pszSrcFilename GENERIC_READ FILE_SHARE_READ NULL OPEN_EXISTING 0 NULL hMapSrcFile CreateFileMapping hSrcFile NULL PAGE_READONLY..
Using IOCTL_MOUNTMGR_QUERY_POINTS http://stackoverflow.com/questions/3012828/using-ioctl-mountmgr-query-points pDetData DevicePath GENERIC_READ GENERIC_WRITE 0 NULL OPEN_EXISTING 0 NULL UCHAR Bytes 10000 PMOUNTMGR_MOUNT_POINTS pMntPoints PMOUNTMGR_MOUNT_POINTS.. 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hMountMgr INVALID_HANDLE_VALUE return 1 cbBytesReturned.. szDeviceName 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hDevice INVALID_HANDLE_VALUE return 1 bSuccess DeviceIoControl..
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 DevicePath 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hDrive INVALID_HANDLE_VALUE continue Get the device.. CreateFile devicepath GENERIC_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hVol INVALID_HANDLE_VALUE return if DeviceIoControl.. devicepath 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if INVALID_HANDLE_VALUE hVolume continue STORAGE_DEVICE_NUMBER..
Get file handle to running executable http://stackoverflow.com/questions/4750897/get-file-handle-to-running-executable myfile NULL myfile CreateFileA example.exe 0x00 0x00 NULL OPEN_EXISTING FILE_ATTRIBUTE_NORMAL NULL if we managed to obtain the desired..
ReadFile() says it failed, but the error code is ERROR_SUCCESS http://stackoverflow.com/questions/5685090/readfile-says-it-failed-but-the-error-code-is-error-success CreateFile GPS_COM_PORT GENERIC_READ GENERIC_WRITE 0 0 OPEN_EXISTING FILE_ATTRIBUTE_NORMAL 0 if hGpsUart INVALID_HANDLE_VALUE if..
Serial Comm using WriteFile/ReadFile http://stackoverflow.com/questions/6036716/serial-comm-using-writefile-readfile 0 share 0 cannot share the COM port 0 security None OPEN_EXISTING creation open_existing 0 we dont want overlapped operation 0.. CreateFile port_name GENERIC_READ GENERIC_WRITE 0 NULL OPEN_EXISTING 0 NULL if INVALID_HANDLE_VALUE file system_error opening file..
List Of Physical Storage Devices win32 C++ http://stackoverflow.com/questions/7584627/list-of-physical-storage-devices-win32-c CreateFile volName 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hVol INVALID_HANDLE_VALUE continue STORAGE_DEVICE_NUMBER..
Multiple threads reading from the same file http://stackoverflow.com/questions/823479/multiple-threads-reading-from-the-same-file h CreateFile c test.txt GENERIC_READ FILE_SHARE_READ NULL OPEN_EXISTING 0 NULL SetFilePointer h i 1000 NULL FILE_BEGIN ReadFile h buf..
C++ std::string conversion problem on Windows http://stackoverflow.com/questions/874433/c-stdstring-conversion-problem-on-windows filename.c_str GENERIC_READ FILE_SHARE_READ NULL OPEN_EXISTING 0 NULL ... Error 'CreateFileW' cannot convert parameter 1 from..
Can't find PInvoke DLL - BUG? http://stackoverflow.com/questions/9410197/cant-find-pinvoke-dll-bug CreateFile TEXT FNC1 GENERIC_READ GENERIC_WRITE 0 NULL OPEN_EXISTING FILE_ATTRIBUTE_NORMAL NULL if 0 DeviceIoControl hDrv IOCTL_WID_GPS_ON..
Why is CreateFile failing to open a file across a network share? http://stackoverflow.com/questions/9587756/why-is-createfile-failing-to-open-a-file-across-a-network-share CreateFile iNCfileName GENERIC_READ FILE_SHARE_READ NULL OPEN_EXISTING FILE_FLAG_SEQUENTIAL_SCAN NULL if iNCfile INVALID_HANDLE_VALUE..
|