Lines Matching refs:FileHandle
700 static std::error_code getStatus(HANDLE FileHandle, file_status &Result) {
702 if (FileHandle == INVALID_HANDLE_VALUE)
705 switch (::GetFileType(FileHandle)) {
726 if (!::GetFileInformationByHandle(FileHandle, &Info))
741 realPathFromHandle(FileHandle, ntPath, VOLUME_NAME_NT)) {
808 HANDLE FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
809 return getStatus(FileHandle, Result);
812 std::error_code status(file_t FileHandle, file_status &Result) {
813 return getStatus(FileHandle, Result);
857 HANDLE FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
858 if (!SetFileTime(FileHandle, NULL, &AccessFT, &ModifyFT))
928 ::GetCurrentProcess(), &FileHandle, 0, 0,
991 if (!realPathFromHandle(FileHandle, FinalPath)) {
999 ::FlushFileBuffers(FileHandle);
1002 ::CloseHandle(FileHandle);
1300 Expected<size_t> readNativeFileImpl(file_t FileHandle,
1308 if (::ReadFile(FileHandle, Buf.data(), BytesToRead, &BytesRead, Overlap))
1317 Expected<size_t> readNativeFile(file_t FileHandle, MutableArrayRef<char> Buf) {
1318 return readNativeFileImpl(FileHandle, Buf, /*Overlap=*/nullptr);
1321 Expected<size_t> readNativeFileSlice(file_t FileHandle,
1327 return readNativeFileImpl(FileHandle, Buf, &Overlapped);