Home
last modified time | relevance | path

Searched refs:WriteFile (Results 1 – 25 of 271) sorted by relevance

1234567891011

/reactos/modules/rostests/apitests/msvcrt/CmdLineUtil/
H A DCmdLineUtil.c50 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()
/reactos/modules/rostests/winetests/msvfw32/
H A Dmciwnd.c141 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()
/reactos/modules/rosapps/applications/cmdutils/y/
H A Dy.c29 WriteFile (GetStdHandle (STD_ERROR_HANDLE), szOut, _tcslen(szOut), &dwWritten, NULL); in ConErrPrintf()
38 WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), szText, _tcslen(szText), &dwWritten, NULL); in ConOutPuts()
39 WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), "\n", 1, &dwWritten, NULL); in ConOutPuts()
72 WriteFile(hConsoleOut,buff,dwRead,&dwWritten,NULL); in main()
109 WriteFile(hConsoleOut,buff,dwRead,&dwWritten,NULL); in main()
/reactos/modules/rostests/rosautotest/
H A DCJournaledTestList.cpp93 WriteFile(m_hJournal, String.c_str(), (ULONG)String.size() + 1, &BytesWritten, NULL); in SerializeIntoJournal()
109WriteFile(m_hJournal, String.c_str(), ((ULONG)String.size() + 1) * sizeof(WCHAR), &BytesWritten, N… in SerializeIntoJournal()
171 WriteFile(m_hJournal, szJournalHeader, sizeof(szJournalHeader), &BytesWritten, NULL); in WriteInitialJournalFile()
172 WriteFile(m_hJournal, &m_ListIterator, sizeof(m_ListIterator), &BytesWritten, NULL); in WriteInitialJournalFile()
181 WriteFile(m_hJournal, &TerminatingNull, sizeof(TerminatingNull), &BytesWritten, NULL); in WriteInitialJournalFile()
261 WriteFile(m_hJournal, &m_ListIterator, sizeof(m_ListIterator), &BytesWritten, NULL); in UpdateJournal()
/reactos/sdk/lib/crt/startup/
H A Dpseudo-reloc.c122 WriteFile (errh, (PCVOID)CYGWIN_FAILURE_MSG, in __report_error()
124 WriteFile (errh, (PCVOID)posix_module, in __report_error()
126 WriteFile (errh, (PCVOID)": ", 2, &done, NULL); in __report_error()
127 WriteFile (errh, (PCVOID)buf, len, &done, NULL); in __report_error()
132 WriteFile (errh, (PCVOID)CYGWIN_FAILURE_MSG, in __report_error()
134 WriteFile (errh, (PCVOID)UNKNOWN_MODULE, in __report_error()
136 WriteFile (errh, (PCVOID)buf, len, &done, NULL); in __report_error()
138 WriteFile (errh, (PCVOID)"\n", 1, &done, NULL); in __report_error()
/reactos/modules/rosapps/applications/cmdutils/tee/
H A Dtee.c31 WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), szText, _tcslen(szText), &dwWritten, NULL); in ConOutPuts()
32 WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), _T("\n"), 1, &dwWritten, NULL); in ConOutPuts()
46 WriteFile (GetStdHandle (STD_ERROR_HANDLE), szOut, _tcslen(szOut), &dwWritten, NULL); in ConErrPrintf()
205 WriteFile(hFile[i],buff,dwRead,&dwWritten,NULL); in main()
207 WriteFile(hConsoleOut,buff,dwRead,&dwWritten,NULL); in main()
/reactos/modules/rosapps/applications/sysutils/utils/ps/
H A Dps.c171 WriteFile(Stdout, buf, lstrlen(buf), &r, NULL); in EnumThreadProc()
188 WriteFile(Stdout, title, lstrlen(title), &r, NULL); in main()
189 WriteFile(Stdout, title1, lstrlen(title1), &r, NULL); in main()
190 WriteFile(Stdout, title2, lstrlen(title2), &r, NULL); in main()
236 WriteFile(stdout, buf, lstrlen(buf), &r, NULL); in main()
269 WriteFile(stdout, buf1, lstrlen(buf1), &r, NULL); in main()
H A Dps.c.toolhelp34 WriteFile(stdout, title, lstrlen(title), &r, NULL);
54 WriteFile(stdout, buf, lstrlen(buf), &r, NULL);
/reactos/modules/rostests/apitests/apphelp/
H A Ddata.c516 WriteFile(file, buf, size, &size, NULL); in test_create_exe_imp()
548 WriteFile(file, &MZ_hdr, sizeof(MZ_hdr), &size, NULL); in test_create_ne_imp()
549 WriteFile(file, &NE_hdr, sizeof(NE_hdr), &size, NULL); in test_create_ne_imp()
550 WriteFile(file, NE_names, sizeof(NE_names), &size, NULL); in test_create_ne_imp()
564 WriteFile(file, contents, (DWORD)len, &size, NULL); in test_create_file_imp()
785 WriteFile(file, rawData, sizeof(rawData), &size, NULL); in test_create_db_imp()
789 WriteFile(file, win10Header, sizeof(win10Header), &size, NULL); in test_create_db_imp()
/reactos/modules/rostests/win32/smss/movefile/
H A Dmovefile.cpp109 WriteFile(hFile, sBuf, sizeof(sBuf), &dwSize, NULL); in Generate()
125 WriteFile(hFile, sBuf, sizeof(sBuf), &dwSize, NULL); in Generate()
140 WriteFile(hFile, sBuf, sizeof(sBuf), &dwSize, NULL); in Generate()
156 WriteFile(hFile, sBuf, sizeof(sBuf), &dwSize, NULL); in Generate()
/reactos/modules/rostests/winetests/kernel32/
H A Dpipe.c773 res = WriteFile(server, buf, 1, &size, &overlapped); in test_ReadFile()
1024 success = WriteFile(hnp, buf, readden, &written, &oOverlap); in serverThreadMain3()
1136 success = WriteFile(hnp, buf, readden, &written, &oWrite); in serverThreadMain4()
1158 success = WriteFile(hnp, buf, readden, &written, &oWrite); in serverThreadMain4()
1439 ok(WriteFile(hnp, obuf, sizeof(obuf), &written, NULL) == 0 in test_DisconnectNamedPipe()
1457 ok(WriteFile(hFile, obuf, sizeof(obuf), &written, NULL) == 0 in test_DisconnectNamedPipe()
1630 ret = WriteFile(hpipe, testdata, 0, &numbytes, NULL); in test_CloseHandle()
1740 ret = WriteFile(hfile, testdata, 0, &numbytes, NULL); in test_CloseHandle()
2295 ret = WriteFile(pipe, "x", 1, &num, NULL); in test_overlapped()
2655 ret = WriteFile(client, test_string, 1, &num_bytes, NULL); in test_readfileex_pending()
[all …]
H A Dmailslot.c101 ok( !WriteFile( hSlot, buffer, sizeof buffer, &count, NULL), in mailslot_test()
125 ok( !WriteFile( hSlot, buffer, sizeof buffer/2, &count, NULL), in mailslot_test()
137 ok( WriteFile( hWriter, buffer, sizeof buffer/2, &count, NULL), in mailslot_test()
222 ok( WriteFile( hWriter, buffer, 1, &count, NULL), "1st write failed\n"); in mailslot_test()
233 ok( WriteFile( hWriter2, buffer, 2, &count, NULL), "2nd write failed\n"); in mailslot_test()
245 ok( WriteFile( hWriter2, buffer, 0, &count, NULL), "3rd write failed\n"); in mailslot_test()
H A Dloader.c186 ret = WriteFile(hfile, dos_header, dos_size, &dummy, NULL); in create_test_dll()
196 ret = WriteFile(hfile, &nt_header->OptionalHeader, in create_test_dll()
246 ret = WriteFile(hfile, filler, file_align, &dummy, NULL); in create_test_dll()
2077 WriteFile(hfile, &nt, sizeof(nt), &dummy, NULL); in test_import_resolution()
2081 WriteFile(hfile, &data, sizeof(data), &dummy, NULL); in test_import_resolution()
2979 ret = WriteFile(file, filler, file_align, &dummy, NULL); in test_ExitProcess()
3522 ret = WriteFile(hfile, &idd, sizeof(idd), &dummy, NULL); in test_ResolveDelayLoadedAPI()
3526 ret = WriteFile(hfile, filler, sizeof(idd), &dummy, NULL); in test_ResolveDelayLoadedAPI()
3538 ret = WriteFile(hfile, &hint, sizeof(hint), &dummy, NULL); in test_ResolveDelayLoadedAPI()
3558 ret = WriteFile(hfile, &itd32, sizeof(itd32), &dummy, NULL); in test_ResolveDelayLoadedAPI()
[all …]
H A Dprofile.c118 WriteFile( h, content, sizeof(content), &count, NULL); in test_profile_string()
143 WriteFile( h, content2, sizeof(content2), &count, NULL); in test_profile_string()
180 WriteFile( h, content, sizeof(content), &count, NULL); in test_profile_sections()
269 WriteFile( h, content, sizeof(content), &count, NULL); in test_profile_sections_names()
419 ok( WriteFile( h, buffer, strlen(buffer), &size, NULL ), "failed to write\n" ); in test_profile_existing()
450 res = WriteFile( h, contents, sizeof contents - 1, &size, NULL ); in test_profile_delete_on_close()
474 res = WriteFile( h, contents1, sizeof contents1 - 1, &size, NULL ); in test_profile_refresh()
490 res = WriteFile( h, contents2, sizeof contents2 - 1, &size, NULL ); in test_profile_refresh()
518 WriteFile(hfile, data, size, &count, NULL); in create_test_file()
/reactos/base/applications/mscutils/servman/
H A Dexport.c77 WriteFile(hFile, in SaveServicesToFile()
87 WriteFile(hFile, in SaveServicesToFile()
94 WriteFile(hFile, in SaveServicesToFile()
/reactos/modules/rostests/winetests/avifil32/
H A Dapi.c340 WriteFile(hFile, &cah->fh, sizeof(deffh), &written, NULL); in create_avi_file()
341 WriteFile(hFile, &cah->mah, sizeof(MainAVIHeader), &written, NULL); in create_avi_file()
342 WriteFile(hFile, streamlist, sizeof(streamlist), &written, NULL); in create_avi_file()
343 WriteFile(hFile, &cah->ash0, 0x38, &written, NULL); in create_avi_file()
344 WriteFile(hFile, videostreamformat, sizeof(videostreamformat), &written, NULL); in create_avi_file()
345 WriteFile(hFile, padding1, sizeof(padding1), &written, NULL); in create_avi_file()
346 WriteFile(hFile, videopropheader, sizeof(videopropheader), &written, NULL); in create_avi_file()
347 WriteFile(hFile, &cah->ash1, 0x38, &written, NULL); in create_avi_file()
348 WriteFile(hFile, audiostreamformat_pre, sizeof(audiostreamformat_pre), &written, NULL); in create_avi_file()
349 WriteFile(hFile, &cah->pcmwf, sizeof(PCMWAVEFORMAT), &written, NULL); in create_avi_file()
[all …]
/reactos/modules/rostests/tests/nptest/
H A Dnpclient.c64 fSuccess = WriteFile( in main()
89 if (! WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), in main()
/reactos/sdk/lib/ucrt/lowio/
H A Dwrite.cpp305 if (!WriteFile(os_handle, mb_buffer, size, &written, nullptr)) in write_double_translated_ansi_nolock()
332 if (!WriteFile(os_handle, &cr, 1, &written, nullptr)) in write_double_translated_ansi_nolock()
444 if (!WriteFile(os_handle, lfbuf, lfbuf_length, &written, nullptr)) in write_text_ansi_nolock()
506 if (!WriteFile(os_handle, lfbuf, lfbuf_length, &written, nullptr)) in write_text_utf16le_nolock()
606 if (!WriteFile(os_handle, current, current_size, &written, nullptr)) in write_text_utf8_nolock()
634 if (!WriteFile(os_handle, buffer, buffer_size, &result.char_count, nullptr)) in write_binary_nolock()
/reactos/sdk/lib/conutils/
H A Doutstream.c180 WriteFile(Stream->hHandle, szStr, dwNumBytes, &dwNumBytes, NULL); in ConWrite()
189 WriteFile(Stream->hHandle, L"\r\n", 2 * sizeof(WCHAR), &dwNumBytes, NULL); in ConWrite()
191 WriteFile(Stream->hHandle, L"\n", sizeof(WCHAR), &dwNumBytes, NULL); in ConWrite()
264 WriteFile(Stream->hHandle, szStr, dwNumBytes, &dwNumBytes, NULL); in ConWrite()
273 WriteFile(Stream->hHandle, "\r\n", 2, &dwNumBytes, NULL); in ConWrite()
275 WriteFile(Stream->hHandle, "\n", 1, &dwNumBytes, NULL); in ConWrite()
293 WriteFile(Stream->hHandle, szStr, len, &dwNumBytes, NULL); in ConWrite()
/reactos/dll/win32/ieframe/
H A Dintshcut.c590 WriteFile(file, str_header, ARRAY_SIZE(str_header) - 1, &bytesWritten, NULL); in PersistFile_Save()
591 WriteFile(file, str_eol, ARRAY_SIZE(str_eol) - 1, &bytesWritten, NULL); in PersistFile_Save()
592 WriteFile(file, str_URL, ARRAY_SIZE(str_URL) - 1, &bytesWritten, NULL); in PersistFile_Save()
593 WriteFile(file, url, lstrlenA(url), &bytesWritten, NULL); in PersistFile_Save()
594 WriteFile(file, str_eol, ARRAY_SIZE(str_eol) - 1, &bytesWritten, NULL); in PersistFile_Save()
614 WriteFile(file, str_ICONFILE, lstrlenA(str_ICONFILE), &bytesWritten, NULL); in PersistFile_Save()
615 WriteFile(file, iconfile, lstrlenA(iconfile), &bytesWritten, NULL); in PersistFile_Save()
616 WriteFile(file, str_eol, lstrlenA(str_eol), &bytesWritten, NULL); in PersistFile_Save()
620 WriteFile(file, indexString, lstrlenA(indexString), &bytesWritten, NULL); in PersistFile_Save()
621 WriteFile(file, str_eol, lstrlenA(str_eol), &bytesWritten, NULL); in PersistFile_Save()
/reactos/modules/rosapps/applications/sysutils/screenshot/
H A Dscreenshot.c58 bSuccess = WriteFile(hFile, in DoWriteFile()
67 bSuccess = WriteFile(hFile, in DoWriteFile()
104 bSuccess = WriteFile(hFile, in DoWriteFile()
117 bSuccess = WriteFile(hFile, in DoWriteFile()
/reactos/base/services/umpnpmgr/
H A Dinstall.c210 WriteFile(hPipe, &Value, sizeof(Value), &BytesWritten, NULL); in InstallDevice()
211 WriteFile(hPipe, InstallEventName, Value, &BytesWritten, NULL); in InstallDevice()
215 WriteFile(hPipe, &ShowWizard, sizeof(ShowWizard), &BytesWritten, NULL); in InstallDevice()
218 WriteFile(hPipe, &Value, sizeof(Value), &BytesWritten, NULL); in InstallDevice()
219 WriteFile(hPipe, DeviceInstance, Value, &BytesWritten, NULL); in InstallDevice()
/reactos/dll/win32/dbghelp/
H A Dminidump.c388 WriteFile(dc->hFile, data, size, &written, NULL); in writeat()
715 WriteFile(dc->hFile, code, 4, &written, NULL); in dump_system_info()
718 WriteFile(dc->hFile, &slen, sizeof(slen), &written, NULL); in dump_system_info()
721 WriteFile(dc->hFile, &slen, sizeof(slen), &written, NULL); in dump_system_info()
723 WriteFile(dc->hFile, &slen, sizeof(slen), &written, NULL); in dump_system_info()
725 WriteFile(dc->hFile, &slen, sizeof(slen), &written, NULL); in dump_system_info()
726 WriteFile(dc->hFile, build_id, strlen(build_id) + 1, &written, NULL); in dump_system_info()
735 WriteFile(dc->hFile, &slen, sizeof(slen), &written, NULL); in dump_system_info()
736 WriteFile(dc->hFile, osInfo.szCSDVersion, slen, &written, NULL); in dump_system_info()
857 WriteFile(dc->hFile, tmp, len, &written, NULL); in dump_memory_info()
[all …]
/reactos/modules/rosapps/templates/skel_service/
H A Dlog.c126 WriteFile(hLogFile, in LogToFile()
178 WriteFile(hLogFile, in InitLogging()
/reactos/modules/rostests/winetests/crypt32/
H A Dsip.c239 WriteFile(file, "123", 3, &written, NULL); in test_SIPRetrieveSubjectGUID()
255 WriteFile(file, "1234", 4, &written, NULL); in test_SIPRetrieveSubjectGUID()
275 WriteFile(file, cabFileData, 4, &written, NULL); in test_SIPRetrieveSubjectGUID()
293 WriteFile(file, cabFileData, sizeof(cabFileData), &written, NULL); in test_SIPRetrieveSubjectGUID()

1234567891011