Home
last modified time | relevance | path

Searched refs:hFile (Results 1 – 25 of 242) sorted by relevance

12345678910

/reactos/modules/rosapps/applications/devutils/nls2txt/
H A Dbestfit.c14 HANDLE hFile; in BestFit_CreateFile() local
16 hFile = CreateFileW(pszFile, in BestFit_CreateFile()
29 return hFile; in BestFit_CreateFile()
33 BestFit_CloseFile(HANDLE hFile) in BestFit_CloseFile() argument
35 CloseHandle(hFile); in BestFit_CloseFile()
117 HANDLE hFile; in BestFit_FromNLS() local
135 BestFit_Write(hFile, in BestFit_FromNLS()
157 BestFit_Write(hFile, in BestFit_FromNLS()
198 BestFit_Write(hFile, in BestFit_FromNLS()
208 BestFit_Write(hFile, in BestFit_FromNLS()
[all …]
/reactos/modules/rostests/apitests/kernel32/
H A DTunnelCache.c15 HANDLE hFile; in Test_VeryLongTests() local
61 CloseHandle(hFile); in Test_VeryLongTests()
74 CloseHandle(hFile); in Test_VeryLongTests()
91 CloseHandle(hFile); in Test_VeryLongTests()
108 HANDLE hFile; in Test_LongTests() local
151 CloseHandle(hFile); in Test_LongTests()
164 CloseHandle(hFile); in Test_LongTests()
177 CloseHandle(hFile); in Test_LongTests()
196 HANDLE hFile, hFind; in Test_ShortTests() local
238 CloseHandle(hFile); in Test_ShortTests()
[all …]
/reactos/sdk/lib/3rdparty/zlib/contrib/minizip/
H A Diowin32.c86 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE)) in win32_build_iowin()
105 HANDLE hFile = NULL; in win32_open64_file_func() local
134 HANDLE hFile = NULL; in win32_open64_file_funcA() local
158 HANDLE hFile = NULL; in win32_open64_file_funcW() local
210 if (hFile != NULL) in win32_read_file_func()
232 if (hFile != NULL) in win32_write_file_func()
272 if (hFile != NULL) in win32_tell_file_func()
296 if (hFile) in win32_tell64_file_func()
336 if (hFile != NULL) in win32_seek_file_func()
375 if (hFile) in win32_seek64_file_func()
[all …]
/reactos/base/applications/cmdutils/reg/
H A Dexport.c90 write_file(hFile, buf); in export_value_name()
130 write_file(hFile, hex); in export_hex_data_type()
136 write_file(hFile, buf); in export_hex_data_type()
179 write_file(hFile, newline); in export_newline()
215 export_newline(hFile); in export_data()
224 write_file(hFile, buf); in export_key_name()
306 write_file(hFile, header); in export_file_header()
344 return hFile; in get_file_handle()
353 HANDLE hFile; in reg_export() local
402 export_newline(hFile); in reg_export()
[all …]
/reactos/base/applications/clipbrd/
H A Dfileutils.c35 if (!ReadFile(hFile, lpData, dwLength, &dwBytesRead, NULL)) in ClipboardReadMemoryBlock()
292 HANDLE hFile; in ReadClipboardFile() local
300 if (hFile == INVALID_HANDLE_VALUE) in ReadClipboardFile()
337 SetFilePointer(hFile, 0, NULL, FILE_BEGIN); in ReadClipboardFile()
443 if (hFile != INVALID_HANDLE_VALUE) in ReadClipboardFile()
444 CloseHandle(hFile); in ReadClipboardFile()
465 HANDLE hFile; in WriteClipboardFile() local
472 if (hFile == INVALID_HANDLE_VALUE) in WriteClipboardFile()
510 SetFilePointer(hFile, 0, NULL, FILE_BEGIN); in WriteClipboardFile()
587 if (hFile != INVALID_HANDLE_VALUE) in WriteClipboardFile()
[all …]
/reactos/dll/win32/kernel32/client/file/
H A Drw.c24 WriteFile(IN HANDLE hFile, in WriteFile() argument
36 hFile = TranslateStdHandle(hFile); in WriteFile()
38 if (IsConsoleHandle(hFile)) in WriteFile()
123 ReadFile(IN HANDLE hFile, in ReadFile() argument
135 hFile = TranslateStdHandle(hFile); in ReadFile()
137 if (IsConsoleHandle(hFile)) in ReadFile()
139 if (ReadConsoleA(hFile, in ReadFile()
262 WriteFileEx(IN HANDLE hFile, in WriteFileEx() argument
299 ReadFileEx(IN HANDLE hFile, in ReadFileEx() argument
337 ReadFileScatter(HANDLE hFile, in ReadFileScatter() argument
[all …]
H A Dfileinfo.c30 hFile = TranslateStdHandle(hFile); in FlushFileBuffers()
54 SetFilePointer(HANDLE hFile, in SetFilePointer() argument
276 hFile = TranslateStdHandle(hFile); in GetFileType()
368 HANDLE hFile, in GetFileSizeEx() argument
419 HANDLE hFile; in GetCompressedFileSizeW() local
438 CloseHandle(hFile); in GetCompressedFileSizeW()
1020 hFile, in SetEndOfFile()
1043 hFile, in SetEndOfFile()
1059 hFile, in SetEndOfFile()
1082 HANDLE hFile, in SetFileValidData() argument
[all …]
H A Dlfile.c20 _hread(HFILE hFile, LPVOID lpBuffer, long lBytes) in _hread() argument
24 if (!ReadFile(LongToHandle(hFile), in _hread()
41 _hwrite(HFILE hFile, LPCSTR lpBuffer, long lBytes) in _hwrite() argument
47 if (!SetEndOfFile((HANDLE)(ULONG_PTR) hFile)) in _hwrite()
53 if (!WriteFile(LongToHandle(hFile), in _hwrite()
118 HANDLE hFile; in _lcreat() local
121 hFile = CreateFileA(lpPathName, in _lcreat()
129 return HandleToLong(hFile); in _lcreat()
138 _lclose(HFILE hFile) in _lclose() argument
149 _llseek(HFILE hFile, LONG lOffset, int iOrigin) in _llseek() argument
[all …]
H A Dlock.c25 LockFile(IN HANDLE hFile, in LockFile() argument
36 if (IsConsoleHandle(hFile)) in LockFile()
48 Status = NtLockFile(hFile, in LockFile()
82 LockFileEx(IN HANDLE hFile, in LockFileEx() argument
93 if (IsConsoleHandle(hFile)) in LockFileEx()
116 Status = NtLockFile(hFile, in LockFileEx()
142 UnlockFile(IN HANDLE hFile, in UnlockFile() argument
155 Result = UnlockFileEx(hFile, in UnlockFile()
183 UnlockFileEx(IN HANDLE hFile, in UnlockFileEx() argument
193 if (IsConsoleHandle(hFile)) in UnlockFileEx()
[all …]
/reactos/modules/rostests/win32/smss/movefile/
H A Dmovefile.cpp85 HANDLE hFile = NULL; in Generate() local
97 hFile = CreateFile( in Generate()
105 if(NULL == hFile) { in Generate()
110 CloseHandle(hFile); in Generate()
113 hFile = CreateFile( in Generate()
121 if(NULL == hFile) { in Generate()
126 CloseHandle(hFile); in Generate()
128 hFile = CreateFile( in Generate()
136 if(NULL == hFile) { in Generate()
141 CloseHandle(hFile); in Generate()
[all …]
/reactos/modules/rostests/win32/fs/tunneltest/
H A Dtunneltest.c30 HANDLE hFile; in wmain() local
73 if (hFile == INVALID_HANDLE_VALUE) in wmain()
81 if (GetFileTime(hFile, &FileTime, NULL, NULL) == FALSE) in wmain()
84 CloseHandle(hFile); in wmain()
88 CloseHandle(hFile); in wmain()
99 if (hFile == INVALID_HANDLE_VALUE) in wmain()
104 CloseHandle(hFile); in wmain()
130 if (hFile == INVALID_HANDLE_VALUE) in wmain()
135 if (GetFileTime(hFile, &File1Time, NULL, NULL) == FALSE) in wmain()
138 CloseHandle(hFile); in wmain()
[all …]
/reactos/modules/rosapps/applications/cmdutils/tee/
H A Dtee.c88 HANDLE *hFile; in main() local
111 hFile = malloc(sizeof(HANDLE)*argc); in main()
155 hFile[i] = CreateFile(files[i],GENERIC_WRITE, in main()
160 if (hFile[i] == INVALID_HANDLE_VALUE) in main()
165 CloseHandle (hFile[i]); in main()
168 free (hFile); in main()
176 if (GetFileType (hFile[i]) == FILE_TYPE_DISK) in main()
184 CloseHandle (hFile[i]); in main()
187 free (hFile); in main()
212 CloseHandle (hFile[i]); in main()
[all …]
/reactos/modules/rostests/winetests/msvfw32/
H A Dmciwnd.c114 HANDLE hFile; in create_avi_file() local
136 if (hFile == INVALID_HANDLE_VALUE) return FALSE; in create_avi_file()
141 WriteFile(hFile, file_header, sizeof(file_header), &written, NULL); in create_avi_file()
142 WriteFile(hFile, &main_avi_header, sizeof(MainAVIHeader), &written, NULL); in create_avi_file()
143 WriteFile(hFile, stream_list, sizeof(stream_list), &written, NULL); in create_avi_file()
144 WriteFile(hFile, &avi_stream_header, sizeof(AVIStreamHeader), &written, NULL); in create_avi_file()
145 WriteFile(hFile, video_stream_format, sizeof(video_stream_format), &written, NULL); in create_avi_file()
146 WriteFile(hFile, padding, sizeof(padding), &written, NULL); in create_avi_file()
147 WriteFile(hFile, buffer, buffer_length, &written, NULL); in create_avi_file()
148 WriteFile(hFile, data, sizeof(data), &written, NULL); in create_avi_file()
[all …]
/reactos/modules/rostests/apitests/msvcrt/CmdLineUtil/
H A DCmdLineUtil.c29 HANDLE hFile = CreateFileW(DATAFILE, in wWinMain() local
35 if (hFile != INVALID_HANDLE_VALUE) in wWinMain()
50 WriteFile(hFile, in wWinMain()
56 WriteFile(hFile, in wWinMain()
65 WriteFile(hFile, in wWinMain()
71 WriteFile(hFile, in wWinMain()
78 WriteFile(hFile, in wWinMain()
84 WriteFile(hFile, in wWinMain()
91 CloseHandle(hFile); in wWinMain()
/reactos/base/shell/cmd/
H A Dtype.c35 IN HANDLE hFile, in FileGetString() argument
49 if (ReadFile(hFile, pString, nBufferLength - 1, &dwRead, NULL)) in FileGetString()
84 HANDLE hFile; in DoTypeFile() local
92 hFile = CreateFile(FileName, in DoTypeFile()
98 if (hFile == INVALID_HANDLE_VALUE) in DoTypeFile()
127 dwFileSize = GetFileSize(hFile, NULL); in DoTypeFile()
135 dwFilePos = SetFilePointer(hFile, 0, NULL, FILE_BEGIN); in DoTypeFile()
157 while (FileGetString(hFile, buff, ARRAYSIZE(buff))) in DoTypeFile()
162 CloseHandle(hFile); in DoTypeFile()
193 CloseHandle(hFile); in DoTypeFile()
[all …]
/reactos/base/applications/mstsc/
H A Dsettings.c198 WriteRdpFile(HANDLE hFile, in WriteRdpFile() argument
301 ReadRdpFile(HANDLE hFile) in ReadRdpFile() argument
307 if (hFile) in ReadRdpFile()
345 HANDLE hFile = NULL; in OpenRdpFile() local
358 return hFile; in OpenRdpFile()
363 CloseRdpFile(HANDLE hFile) in CloseRdpFile() argument
365 if (hFile) in CloseRdpFile()
375 HANDLE hFile; in SaveRdpSettingsToFile() local
403 if (hFile) in SaveRdpSettingsToFile()
423 HANDLE hFile; in LoadRdpSettingsFromFile() local
[all …]
/reactos/win32ss/user/ntuser/misc/
H A Dfile.c48 HANDLE hFile = INVALID_HANDLE_VALUE; in W32kOpenFile() local
61 Status = ZwCreateFile(&hFile, in W32kOpenFile()
75 hFile = NULL; in W32kOpenFile()
79 return hFile; in W32kOpenFile()
84 W32kCreateFileSection(HANDLE hFile, in W32kCreateFileSection() argument
110 hFile); in W32kCreateFileSection()
162 HANDLE hFile, hSection; in UserLoadImage() local
171 hFile = W32kOpenFile(pwszName, FILE_READ_DATA); in UserLoadImage()
172 if (!hFile) in UserLoadImage()
178 hSection = W32kCreateFileSection(hFile, SEC_COMMIT, PAGE_READONLY, 0); in UserLoadImage()
[all …]
/reactos/modules/rostests/winetests/imagehlp/
H A Dintegrity.c167 HANDLE hFile; in test_add_certificate() local
175 if (hFile == INVALID_HANDLE_VALUE) in test_add_certificate()
187 CloseHandle(hFile); in test_add_certificate()
201 CloseHandle(hFile); in test_add_certificate()
207 HANDLE hFile; in test_get_certificate() local
215 if (hFile == INVALID_HANDLE_VALUE) in test_get_certificate()
231 CloseHandle(hFile); in test_get_certificate()
240 CloseHandle(hFile); in test_get_certificate()
246 HANDLE hFile; in test_remove_certificate() local
251 if (hFile == INVALID_HANDLE_VALUE) in test_remove_certificate()
[all …]
/reactos/dll/win32/imagehlp/
H A Dmodify.c240 HANDLE hFile; in MapFileAndCheckSumA() local
249 hFile = CreateFileA(Filename, in MapFileAndCheckSumA()
269 CloseHandle(hFile); in MapFileAndCheckSumA()
281 CloseHandle(hFile); in MapFileAndCheckSumA()
285 FileLength = GetFileSize(hFile, in MapFileAndCheckSumA()
295 CloseHandle(hFile); in MapFileAndCheckSumA()
306 HANDLE hFile; in MapFileAndCheckSumW() local
315 hFile = CreateFileW(Filename, in MapFileAndCheckSumW()
335 CloseHandle(hFile); in MapFileAndCheckSumW()
347 CloseHandle(hFile); in MapFileAndCheckSumW()
[all …]
H A Daccess.c135 HANDLE hFile = INVALID_HANDLE_VALUE; in MapAndLoad() local
150 hFile = CreateFileA(szFileName, in MapAndLoad()
154 if (hFile == INVALID_HANDLE_VALUE) in MapAndLoad()
160 hFileMapping = CreateFileMappingA(hFile, NULL, in MapAndLoad()
187 pLoadedImage->hFile = hFile; in MapAndLoad()
194 pLoadedImage->SizeOfImage = GetFileSize(hFile, NULL); in MapAndLoad()
207 if (hFile != INVALID_HANDLE_VALUE) CloseHandle(hFile); in MapAndLoad()
233 if (pLoadedImage->hFile != INVALID_HANDLE_VALUE) CloseHandle(pLoadedImage->hFile); in UnMapAndLoad()
/reactos/subsystems/mvdm/ntvdm/
H A Dutils.c30 HANDLE hFile; in FileOpen() local
35 hFile = CreateFileA(FileName, in FileOpen()
43 FileName, hFile != INVALID_HANDLE_VALUE ? "succeeded" : "failed", GetLastError()); in FileOpen()
46 if (hFile == INVALID_HANDLE_VALUE) return NULL; in FileOpen()
54 ulFileSize = GetFileSize(hFile, NULL); in FileOpen()
59 FileClose(hFile); in FileOpen()
65 return hFile; in FileOpen()
/reactos/modules/rosapps/applications/explorer-old/shell/
H A Dwinfs.cpp37 int ScanNTFSStreams(Entry* entry, HANDLE hFile) in ScanNTFSStreams() argument
55 BackupRead(hFile, (LPBYTE)hdr.cStreamName, hdr.dwStreamNameSize, &read, FALSE, FALSE, &ctx) && in ScanNTFSStreams()
91 if (!BackupSeek(hFile, ~0, ~0, &read, &seek_high, &ctx)) { in ScanNTFSStreams()
95 BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx); // terminate BackupRead() loop in ScanNTFSStreams()
106 … if (!BackupRead(hFile, buffer, sizeof(buffer), &read, FALSE, FALSE, &ctx) || read!=sizeof(buffer)) in ScanNTFSStreams()
115 if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx)) // terminate BackupRead() loop in ScanNTFSStreams()
165 …HANDLE hFile = CreateFile(buffer, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, in read_directory() local
168 if (hFile != INVALID_HANDLE_VALUE) { in read_directory()
169 if (GetFileInformationByHandle(hFile, &entry->_bhfi)) in read_directory()
173 if (ScanNTFSStreams(entry, hFile)) in read_directory()
[all …]
/reactos/drivers/filesystems/udfs/Include/
H A Denv_spec_nt.cpp328 HANDLE hFile in EnvFileClose() argument
331 return NtClose(hFile); in EnvFileClose()
337 HANDLE hFile, in EnvFileGetSizeByHandle() argument
346 hFile, in EnvFileGetSizeByHandle()
366 HANDLE hFile; in EnvFileGetSizeA() local
377 NtClose(hFile); in EnvFileGetSizeA()
390 HANDLE hFile; in EnvFileGetSizeW() local
401 NtClose(hFile); in EnvFileGetSizeW()
481 HANDLE hFile, in EnvFileSetPointer() argument
501 hFile, in EnvFileSetPointer()
[all …]
/reactos/modules/rosapps/applications/cmdutils/winspool_print/
H A Dmain.c14 HANDLE hFile = INVALID_HANDLE_VALUE; in wmain() local
25 hFile = CreateFileW(argv[1], GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); in wmain()
26 if (hFile == INVALID_HANDLE_VALUE) in wmain()
32 dwFileSize = GetFileSize(hFile, NULL); in wmain()
64 if (!ReadFile(hFile, Buffer, dwRead, &dwRead, NULL)) in wmain()
96 if (hFile != INVALID_HANDLE_VALUE) in wmain()
97 CloseHandle(hFile); in wmain()
/reactos/subsystems/mvdm/ntvdm/hardware/
H A Ddisk.c191 IN HANDLE hFile) in MountFDI() argument
200 FileSize = GetFileSize(hFile, NULL); in MountFDI()
225 SetFilePointer(hFile, 0, NULL, FILE_BEGIN); in MountFDI()
227 DiskImage->hDisk = hFile; in MountFDI()
247 IN HANDLE hFile) in MountHDD() argument
310 SetFilePointer(hFile, 0, NULL, FILE_BEGIN); in MountHDD()
312 DiskImage->hDisk = hFile; in MountHDD()
507 HANDLE hFile; in MountDisk() local
528 hFile = CreateFileW(FileName, in MountDisk()
539 if (hFile == INVALID_HANDLE_VALUE) in MountDisk()
[all …]

12345678910