Home
last modified time | relevance | path

Searched refs:hf (Results 1 – 25 of 39) sorted by relevance

12

/reactos/modules/rostests/winetests/cabinet/
H A Dfdi.c154 HANDLE handle = (HANDLE) hf; in fdi_read()
163 HANDLE handle = (HANDLE) hf; in fdi_write()
172 HANDLE handle = (HANDLE) hf; in fdi_close()
178 HANDLE handle = (HANDLE) hf; in fdi_seek()
193 ok(hf == 0, "unexpected hf %lx\n", hf); in fdi_read_static()
211 ok(hf == 0, "unexpected hf %lx\n", hf); in fdi_seek_static()
491 HANDLE handle = (HANDLE)hf; in fci_read()
503 HANDLE handle = (HANDLE)hf; in fci_write()
515 HANDLE handle = (HANDLE)hf; in fci_close()
523 HANDLE handle = (HANDLE)hf; in fci_seek()
[all …]
H A Dextract.c176 static UINT CDECL fci_read(INT_PTR hf, void *memory, UINT cb, int *err, void *pv) in fci_read() argument
178 HANDLE handle = (HANDLE)hf; in fci_read()
188 static UINT CDECL fci_write(INT_PTR hf, void *memory, UINT cb, int *err, void *pv) in fci_write() argument
190 HANDLE handle = (HANDLE)hf; in fci_write()
200 static int CDECL fci_close(INT_PTR hf, int *err, void *pv) in fci_close() argument
202 HANDLE handle = (HANDLE)hf; in fci_close()
208 static LONG CDECL fci_seek(INT_PTR hf, LONG dist, int seektype, int *err, void *pv) in fci_seek() argument
210 HANDLE handle = (HANDLE)hf; in fci_seek()
/reactos/sdk/include/psdk/
H A Dfdi.h211 typedef UINT (__cdecl *PFNREAD) (INT_PTR hf, void *pv, UINT cb);
212 #define FNREAD(fn) UINT __cdecl fn(INT_PTR hf, void *pv, UINT cb)
214 typedef UINT (__cdecl *PFNWRITE)(INT_PTR hf, void *pv, UINT cb);
215 #define FNWRITE(fn) UINT __cdecl fn(INT_PTR hf, void *pv, UINT cb)
217 typedef int (__cdecl *PFNCLOSE)(INT_PTR hf);
218 #define FNCLOSE(fn) int __cdecl fn(INT_PTR hf)
220 typedef LONG (__cdecl *PFNSEEK) (INT_PTR hf, LONG dist, int seektype);
221 #define FNSEEK(fn) LONG __cdecl fn(INT_PTR hf, LONG dist, int seektype)
233 INT_PTR hf; member
H A Dfci.h175 typedef UINT (__cdecl *PFNFCIREAD) (INT_PTR hf, void *memory, UINT cb, int *err, void *pv);
176 #define FNFCIREAD(fn) UINT __cdecl fn(INT_PTR hf, void *memory, UINT cb, int *err, void *pv)
178 typedef UINT (__cdecl *PFNFCIWRITE)(INT_PTR hf, void *memory, UINT cb, int *err, void *pv);
179 #define FNFCIWRITE(fn) UINT __cdecl fn(INT_PTR hf, void *memory, UINT cb, int *err, void *pv)
181 typedef int (__cdecl *PFNFCICLOSE)(INT_PTR hf, int *err, void *pv);
182 #define FNFCICLOSE(fn) int __cdecl fn(INT_PTR hf, int *err, void *pv)
184 typedef LONG (__cdecl *PFNFCISEEK) (INT_PTR hf, LONG dist, int seektype, int *err, void *pv);
185 #define FNFCISEEK(fn) LONG __cdecl fn(INT_PTR hf, LONG dist, int seektype, int *err, void *pv)
/reactos/dll/shellext/cabview/
H A Dextract.cpp74 return CloseHandle((HANDLE)hf) ? 0 : -1; in FNCLOSE()
99 return ReadFile((HANDLE)hf, pv, cb, &dwBytesRead, NULL) ? dwBytesRead : -1; in FNREAD()
105 return WriteFile((HANDLE)hf, pv, cb, &dwBytesWritten, NULL) ? dwBytesWritten : -1; in FNWRITE()
110 return SetFilePointer((HANDLE)hf, dist, NULL, seektype); in FNSEEK()
163 SetFileTime((HANDLE)(pfdin->hf), NULL, NULL, &ft); in FNFDINOTIFY()
164 return !CabClose(pfdin->hf); in FNFDINOTIFY()
204 …INT_PTR hf = quick ? -1 : CabOpenEx(cab, GENERIC_READ, share, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL… in ExtractCabinet() local
205 if (hf != -1) in ExtractCabinet()
208 if (FDIIsCabinet(hfdi, hf, &ci)) in ExtractCabinet()
213 CabClose(hf); in ExtractCabinet()
[all …]
/reactos/dll/win32/cabinet/
H A Dcabinet_main.c123 static UINT CDECL fdi_read(INT_PTR hf, void *pv, UINT cb) in fdi_read() argument
125 HANDLE handle = (HANDLE) hf; in fdi_read()
134 static UINT CDECL fdi_write(INT_PTR hf, void *pv, UINT cb) in fdi_write() argument
136 HANDLE handle = (HANDLE) hf; in fdi_write()
145 static int CDECL fdi_close(INT_PTR hf) in fdi_close() argument
147 HANDLE handle = (HANDLE) hf; in fdi_close()
151 static LONG CDECL fdi_seek(INT_PTR hf, LONG dist, int seektype) in fdi_seek() argument
153 HANDLE handle = (HANDLE) hf; in fdi_seek()
270 HANDLE handle = (HANDLE) pfdin->hf; in fdi_notify_extract()
H A Dfdi.c468 return fdi->seek(hf, 0, SEEK_CUR); in FDI_getoffset()
479 base = FDI_getoffset(fdi, hf), in FDI_read_string()
490 if (!fdi->read(hf, buf, len)) break; in FDI_read_string()
505 fdi->seek(hf, base, SEEK_SET); in FDI_read_string()
534 INT_PTR hf, in FDI_read_entries() argument
613 prevname = FDI_read_string(fdi, hf, cabsize); in FDI_read_entries()
622 previnfo = FDI_read_string(fdi, hf, cabsize); in FDI_read_entries()
634 nextname = FDI_read_string(fdi, hf, cabsize); in FDI_read_entries()
647 nextinfo = FDI_read_string(fdi, hf, cabsize); in FDI_read_entries()
709 rv = FDI_read_entries(fdi, hf, pfdici, NULL); in FDIIsCabinet()
[all …]
/reactos/sdk/lib/3rdparty/zlib/contrib/minizip/
H A Diowin32.c51 HANDLE hf; member
89 w32fiow.hf = hFile; in win32_build_iowin()
208 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_read_file_func()
230 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_write_file_func()
271 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_tell_file_func()
294 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_tell64_file_func()
321 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_seek_file_func()
359 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_seek64_file_func()
398 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_close_file_func()
/reactos/dll/win32/msi/
H A Dmedia.c142 static UINT CDECL cabinet_read(INT_PTR hf, void *pv, UINT cb) in cabinet_read() argument
144 HANDLE handle = (HANDLE)hf; in cabinet_read()
155 HANDLE handle = (HANDLE)hf; in cabinet_write()
164 static int CDECL cabinet_close(INT_PTR hf) in cabinet_close() argument
166 HANDLE handle = (HANDLE)hf; in cabinet_close()
172 HANDLE handle = (HANDLE)hf; in cabinet_seek()
227 IStream *stm = (IStream *)hf; in cabinet_read_stream()
238 static int CDECL cabinet_close_stream( INT_PTR hf ) in cabinet_close_stream() argument
240 IStream *stm = (IStream *)hf; in cabinet_close_stream()
247 IStream *stm = (IStream *)hf; in cabinet_seek_stream()
[all …]
/reactos/dll/win32/setupapi/
H A Dsetupcab.c165 static UINT CDECL sc_cb_read(INT_PTR hf, void *pv, UINT cb) in sc_cb_read() argument
172 rslt = ReadFile((HANDLE) hf, pv, cb, &num_read, NULL); in sc_cb_read()
185 static UINT CDECL sc_cb_write(INT_PTR hf, void *pv, UINT cb) in sc_cb_write() argument
192 if ( /* (rv = */ WriteFile((HANDLE) hf, pv, cb, &num_written, NULL) /* ) */ in sc_cb_write()
203 static int CDECL sc_cb_close(INT_PTR hf) in sc_cb_close() argument
207 if (CloseHandle((HANDLE) hf)) in sc_cb_close()
213 static LONG CDECL sc_cb_lseek(INT_PTR hf, LONG dist, int seektype) in sc_cb_lseek() argument
222 …if (((ret = SetFilePointer((HANDLE) hf, dist, NULL, seektype)) != INVALID_SET_FILE_POINTER) || !Ge… in sc_cb_lseek()
316 if (sc_cb_close(pfdin->hf)) in sc_FNNOTIFY_A()
457 if (sc_cb_close(pfdin->hf)) in sc_FNNOTIFY_W()
/reactos/base/applications/rapps/
H A Dcabinet.cpp118 if (ReadFile((HANDLE)hf, pv, cb, &dwBytesRead, NULL) == FALSE) in FNREAD()
130 if (WriteFile((HANDLE)hf, pv, cb, &dwBytesWritten, NULL) == FALSE) in FNWRITE()
140 return (CloseHandle((HANDLE)hf) != FALSE) ? 0 : -1; in FNCLOSE()
145 return SetFilePointer((HANDLE)hf, dist, NULL, seektype); in FNSEEK()
208 iResult = !fnFileClose(pfdin->hf); in FNFDINOTIFY()
/reactos/dll/win32/advpack/
H A Dreg.c61 HANDLE hf = INVALID_HANDLE_VALUE; in create_tmp_ini_file() local
82 if((hf = CreateFileW(ini_file, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, in create_tmp_ini_file()
87 if(!WriteFile(hf, rsrc_data, rsrc_size, &bytes_written, NULL) || rsrc_size != bytes_written) { in create_tmp_ini_file()
92 CloseHandle(hf); in create_tmp_ini_file()
96 if(hf != INVALID_HANDLE_VALUE) CloseHandle(hf); in create_tmp_ini_file()
/reactos/modules/rostests/winetests/advpack/
H A Dfiles.c234 static UINT CDECL fci_read(INT_PTR hf, void *memory, UINT cb, int *err, void *pv) in fci_read() argument
236 HANDLE handle = (HANDLE)hf; in fci_read()
246 static UINT CDECL fci_write(INT_PTR hf, void *memory, UINT cb, int *err, void *pv) in fci_write() argument
248 HANDLE handle = (HANDLE)hf; in fci_write()
258 static int CDECL fci_close(INT_PTR hf, int *err, void *pv) in fci_close() argument
260 HANDLE handle = (HANDLE)hf; in fci_close()
266 static LONG CDECL fci_seek(INT_PTR hf, LONG dist, int seektype, int *err, void *pv) in fci_seek() argument
268 HANDLE handle = (HANDLE)hf; in fci_seek()
H A Dinstall.c61 HANDLE hf = CreateFileA(filename, GENERIC_WRITE, 0, NULL, in create_inf_file() local
71 WriteFile(hf, data, sizeof(data) - 1, &dwNumberOfBytesWritten, NULL); in create_inf_file()
72 CloseHandle(hf); in create_inf_file()
H A Dadvpack.c207 HANDLE hf = CreateFileA(inf_file, GENERIC_WRITE, 0, NULL, in create_inf_file() local
241 WriteFile(hf, data, ptr - data, &dwNumberOfBytesWritten, NULL); in create_inf_file()
242 CloseHandle(hf); in create_inf_file()
496 HANDLE hf = CreateFileA(inf_file, GENERIC_WRITE, 0, NULL, in translateinfstringex_test() local
522 WriteFile(hf, data, ptr - data, &dwNumberOfBytesWritten, NULL); in translateinfstringex_test()
523 CloseHandle(hf); in translateinfstringex_test()
/reactos/base/applications/atactl/
H A Datactl.cpp1358 HANDLE hf = NULL; in ata_bblk() local
1401 hf = ata_open_file(g_bb_list, FALSE); in ata_bblk()
1402 if(!hf) { in ata_bblk()
1408 len = GetFileSize(hf, NULL); in ata_bblk()
1454 while(_fgets(BB_Msg, sizeof(BB_Msg), hf)) { in ata_bblk()
1569 hf = ata_open_file(g_bb_list, TRUE); in ata_bblk()
1570 if(!hf) { in ata_bblk()
1585 WriteFile(hf, BB_Msg, b, &returned, NULL); in ata_bblk()
1590 WriteFile(hf, BB_Msg, b, &returned, NULL); in ata_bblk()
1595 WriteFile(hf, BB_Msg, b, &returned, NULL); in ata_bblk()
[all …]
/reactos/modules/rostests/winetests/riched20/
H A Dtxtsrv.c561 static void hf_to_cf(HFONT hf, CHARFORMAT2W *cf) in hf_to_cf() argument
565 GetObjectW(hf, sizeof(lf), &lf); in hf_to_cf()
585 HFONT hf; in init_texthost() local
597 hf = GetStockObject(DEFAULT_GUI_FONT); in init_texthost()
598 hf_to_cf(hf, &dummyTextHost->char_format); in init_texthost()
711 HFONT hf; in test_TxGetNaturalSize() local
725 hf = GetStockObject(DEFAULT_GUI_FONT); in test_TxGetNaturalSize()
726 hf_to_cf(hf, &cf); in test_TxGetNaturalSize()
729 SelectObject(hdcDraw, hf); in test_TxGetNaturalSize()
/reactos/modules/rostests/winetests/setupapi/
H A Dquery.c106 HANDLE hf = CreateFileA(filename, GENERIC_WRITE, 0, NULL, in create_inf_file() local
108 if (hf == INVALID_HANDLE_VALUE) return FALSE; in create_inf_file()
109 ret = WriteFile(hf, data, size, &dwNumberOfBytesWritten, NULL); in create_inf_file()
110 CloseHandle(hf); in create_inf_file()
H A Dmisc.c55 HANDLE hf = CreateFileA(filename, GENERIC_WRITE, 0, NULL, in create_inf_file() local
67 WriteFile(hf, data, sizeof(data) - 1, &dwNumberOfBytesWritten, NULL); in create_inf_file()
68 CloseHandle(hf); in create_inf_file()
/reactos/modules/rostests/winetests/cryptnet/
H A Dcryptnet.c303 HANDLE hf; in make_tmp_file() local
309 hf = CreateFileA(path, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, in make_tmp_file()
311 WriteFile(hf, certWithCRLDistPoint, sizeof(certWithCRLDistPoint), in make_tmp_file()
313 CloseHandle(hf); in make_tmp_file()
/reactos/dll/win32/comdlg32/
H A Dfontdlg.c381 HFONT hf; in SetFontStylesToCombo2() local
392 hf=CreateFontIndirectW(&lf); in SetFontStylesToCombo2()
393 hf=SelectObject(hdc,hf); in SetFontStylesToCombo2()
395 hf=SelectObject(hdc,hf); in SetFontStylesToCombo2()
396 DeleteObject(hf); in SetFontStylesToCombo2()
/reactos/modules/rostests/winetests/winspool/
H A Dinfo.c2593 HANDLE hf; in test_GetPrinterDriver() local
2618 if(hf != INVALID_HANDLE_VALUE) in test_GetPrinterDriver()
2619 CloseHandle(hf); in test_GetPrinterDriver()
2621 ok(hf != INVALID_HANDLE_VALUE, "Could not open %s\n", di_2->pDriverPath); in test_GetPrinterDriver()
2623hf = CreateFileA(di_2->pDataFile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBU… in test_GetPrinterDriver()
2624 if(hf != INVALID_HANDLE_VALUE) in test_GetPrinterDriver()
2625 CloseHandle(hf); in test_GetPrinterDriver()
2626 ok(hf != INVALID_HANDLE_VALUE, "Could not open %s\n", di_2->pDataFile); in test_GetPrinterDriver()
2629 if(hf != INVALID_HANDLE_VALUE) in test_GetPrinterDriver()
2630 CloseHandle(hf); in test_GetPrinterDriver()
[all …]
/reactos/dll/win32/riched20/
H A Dpara.c158 HFONT hf; in ME_MakeFirstParagraph() local
167 hf = GetStockObject(SYSTEM_FONT); in ME_MakeFirstParagraph()
168 assert(hf); in ME_MakeFirstParagraph()
169 GetObjectW(hf, sizeof(LOGFONTW), &lf); in ME_MakeFirstParagraph()
/reactos/win32ss/gdi/ntgdi/
H A Dfont.c1074 IN HFONT hf) in NtGdiGetRealizationInfo() argument
1122 if (GdiHandleTable->cfPublic[i].hf == hf) in NtGdiGetRealizationInfo()
/reactos/modules/rostests/winetests/shell32/
H A Dshelllink.c658 HANDLE hf; in test_load_save() local
781 hf = CreateFileA(mypath, GENERIC_WRITE, 0, NULL, in test_load_save()
783 CloseHandle(hf); in test_load_save()
825 hf = CreateFileA(mypath, GENERIC_WRITE, 0, NULL, in test_load_save()
827 CloseHandle(hf); in test_load_save()

12