Lines Matching refs:file_handle
42 base::win::ScopedHandle file_handle(
45 if (!file_handle)
50 CHECK(::GetFileInformationByHandle(file_handle, &bhi));
68 ::ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL);
85 SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN);
86 if (!::WriteFile(file_handle, buffer, kOneMB, &bytes_written, NULL) ||
108 file_handle.Set(NULL);
109 file_handle.Set(CreateFile(file.value().c_str(), GENERIC_WRITE, 0, NULL,
111 CHECK_NE(SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN),
113 CHECK(::SetEndOfFile(file_handle));
117 CHECK(::SetFileTime(file_handle, &bhi.ftCreationTime, &bhi.ftLastAccessTime,