search for: writefile

Displaying 20 results from an estimated 76 matches for "writefile".

2001 Dec 04
2
Serial Errors
...andle 92, flags f trace:comm:EscapeCommFunction handle 92, function=5 trace:comm:EscapeCommFunction SETDTR trace:comm:GetCommTimeouts (5c,0x40616b08) trace:comm:SetCommTimeouts (5c,0x40616af4) trace:file:ReadFile 92 0x40616b48 1 0x40616af0 (nil) trace:comm:SetCommTimeouts (5c,0x40616b08) trace:file:WriteFile 92 0x40616b80 1 0x40616b1c (nil) trace:comm:PurgeComm handle 92, flags f trace:comm:PurgeComm handle 92, flags f trace:file:WriteFile 92 0x40616b80 1 0x40616b58 (nil) trace:comm:GetCommTimeouts (5c,0x40616b44) trace:comm:SetCommTimeouts (5c,0x40616b30) trace:file:ReadFile 92 0x40616b7b 1 0x40616b2c...
2001 Sep 14
5
wine serial support
Hi, I use wine to run a terminal emulator (NetTerm). It connects to a Linux Server (it was meant to run from windows) that runs a commerce software. This Linux commerce software sends the terminal emulator escape codes to interface with a "ticket" printer attached to a serial port. The reason to go thru all this problem is that the printer has a proprietary, closed source driver for
2004 Aug 06
2
Please 30 second to look a my code
...frame size int tmp=0; speex_encoder_ctl(state, SPEEX_SET_VBR, &tmp); tmp=1; speex_encoder_ctl(state, SPEEX_SET_COMPLEXITY, &tmp); bit_rate=24000; speex_encoder_ctl(state, SPEEX_SET_BITRATE, &bit_rate); ReadFile(WaveFile, waveheader, WAVEHEADER, &NrOfBytesRead, NULL); WriteFile(SpeexFile, waveheader, WAVEHEADER, &NrOfBytesWritten, NULL); //Raw copy of waveheader from speexfile to wavefile while(true) { ReadFile(WaveFile, InBuffer, FRAME_SIZE, &NrOfBytesRead, NULL); //Fabio: Somewhere i found FRAME_SIZE * 2 speex_bits_reset(&bits); //Reset o...
2017 Jun 04
2
trying to get a minimal windows program linked with lld
Here's some C code: extern void *GetStdHandle(unsigned int nStdHandle); extern void ExitProcess(unsigned int exit_code); extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int nNumberOfBytesToWrite, unsigned int *lpNumberOfBytesWritten, void *lpOverlapped); static const char *message_ptr = "hello\n"; static const unsigned int message_len = 6; __attribute__((stdcall)) int _start(void) { void *hStdOut =...
2018 Jan 16
3
Windows TAP driver issues
Thanks for the info, that is very helpful. It does look like that change got back-ported to master, albeit in a different form. I'll take a look at how OpenVPN does its windows device I/O. - todd
2017 Jun 04
2
trying to get a minimal windows program linked with lld
...on .lib files from the SDK, so there's still a problem to solve here. On Sun, Jun 4, 2017 at 3:33 PM, Andrew Kelley <superjoe30 at gmail.com> wrote: Here's some C code: extern void *GetStdHandle(unsigned int nStdHandle); extern void ExitProcess(unsigned int exit_code); extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int nNumberOfBytesToWrite,     unsigned int *lpNumberOfBytesWritten, void *lpOverlapped); static const char *message_ptr = "hello\n"; static const unsigned int message_len = 6; __attribute__((stdcall)) int _start(void) {     void *hStdOut =...
2001 Nov 07
1
WG: Re: Wine and the serial port [LONG]
...tmask) ) if(eventmask & EV_RXCHAR ) ReadFile() (of course, now with WaitForSingleObject() handling. Code excerpts available upon request). - Set RTS signals (if configured) - Write to the comport and do wait on -different- overlapped IO. Ther reason for this: If you use ReadFile() after WriteFile(), the following might happen on very slow machines: Data comes in on the serial line, and cannot be buffered by the serial port, and because there is no Read pending, the data gets lost. (This happened to us, so its a real-life problem and not something theoretical). Anyway, what seems to happen...
2004 Aug 06
0
Please 30 second to look a my code
...coder_ctl(state, SPEEX_SET_VBR, &tmp); > tmp=1; > speex_encoder_ctl(state, SPEEX_SET_COMPLEXITY, &tmp); > > bit_rate=24000; > speex_encoder_ctl(state, SPEEX_SET_BITRATE, &bit_rate); > ReadFile(WaveFile, waveheader, WAVEHEADER, &NrOfBytesRead, NULL); > WriteFile(SpeexFile, waveheader, WAVEHEADER, &NrOfBytesWritten, > NULL); //Raw copy of waveheader from speexfile to wavefile > > while(true) > { > ReadFile(WaveFile, InBuffer, FRAME_SIZE, &NrOfBytesRead, NULL); > //Fabio: Somewhere i found FRAME_SIZE * 2 > >...
2008 Mar 06
4
dot matrix POS parallel printer problems
I have a application that writes to the LPT1 directly, in wine there is a lot of missing characters in the printout, in the console printing to /dev/lp0 works ok. I'm using puppy linux. Any help welcome. Thank you
2008 Dec 18
5
EverQuest - worked once, but no more
...00058,00000000,00000000,00000002) ret=005bb05c > 0009:Ret KERNEL32.SetFilePointer() retval=00001c5f ret=005bb05c > 0009:Call KERNEL32.SetFilePointer(00000058,00000000,0032e394,00000002) ret=005c9717 > 0009:Ret KERNEL32.SetFilePointer() retval=00001c5f ret=005c9717 > 0009:Call KERNEL32.WriteFile(00000058,0032e3d4,00000031,0032e3bc,00000000) ret=005c30e1 > 0009:Ret KERNEL32.WriteFile() retval=00000001 ret=005c30e1 > 0009:Call ntdll.RtlFreeHeap(00bf0000,00000000,00bf89b8) ret=005b63d4 > 0009:Ret ntdll.RtlFreeHeap() retval=00000001 ret=005b63d4 > 0009:Call KERNEL32.CloseHandle(0...
2017 Jun 14
2
Using LLD to create a .lib from a .def
...erRef mbref(*mem_buf); lld::coff::parseModuleDefs(mbref); lld::coff::Config->OutputFile = buf_ptr(dll_path); lld::coff::writeImportLibrary(); } Then I give it def_contents that looks like: LIBRARY kernel32 EXPORTS ExitProcess GetConsoleMode GetStdHandle GetFileInformationByHandleEx WriteFile GetLastError with dll_path set to ./zig-cache/all.dll. This generates ./zig-cache/all.lib. The generated LLVM IR looks like: ; Function Attrs: noreturn nounwind declare void @ExitProcess(i32) #6 ; Function Attrs: nounwind declare i1 @GetConsoleMode(i8* nonnull, i32* nonnull) #3 ; Function Attrs...
2004 Aug 19
1
Serial Communication
...e the line to even parity (among others). But, if I run "stty -a -F /dev/ttyn00" (to which com1 is a link to), then I see no change. The parameters are not set. So I set them using stty to get further. The program apparently tries to write to the line, then, as the output is: trace:file:WriteFile 0x9c 0x4132b160 24 0x415640d4 (nil) trace:comm:ClearCommError handle 0x9c cbInQue = 0 cbOutQue = 0 trace:comm:PurgeComm handle 0x9c, flags f trace:file:WriteFile 0x9c 0x4132b160 24 0x415640d4 (nil) trace:comm:ClearCommError handle 0x9c cbInQue = 0 cbOutQue = 0 trace:comm:PurgeComm handle 0x9c, flag...
2014 Jul 25
0
Wine release 1.7.23
...riority. wined3d: Remove wined3d_surface_set/get_priority. wined3d: Remove wined3d_volume_set/get_priority. wined3d: Remove wined3d_buffer_set/get_priority. wined3d: Remove wined3d_texture_set/get_priority. Thomas Faber (16): wininet: Do not omit mandatory argument to WriteFile. d3dxof: Do not omit mandatory argument to WriteFile. d3dx9_36: Do not omit mandatory argument to WriteFile. gdi32: Do not omit mandatory argument to WriteFile. cmd: Do not omit mandatory argument to WriteFile. dxdiag: Do not omit mandatory argument to WriteFile....
2017 Jun 15
2
Using LLD to create a .lib from a .def
...tr(dll_path); >> lld::coff::writeImportLibrary(); >> } >> >> >> Then I give it def_contents that looks like: >> LIBRARY kernel32 >> EXPORTS >> ExitProcess >> GetConsoleMode >> GetStdHandle >> GetFileInformationByHandleEx >> WriteFile >> GetLastError >> >> >> with dll_path set to ./zig-cache/all.dll. This generates >> ./zig-cache/all.lib. >> >> The generated LLVM IR looks like: >> >> ; Function Attrs: noreturn nounwind >> declare void @ExitProcess(i32) #6 >> ; Fun...
2016 May 23
2
A "Cross-Platform Runtime Library API" in LLVM IR
...should implement "__alloc" that does the same as "malloc" - or something subtly different from "malloc" - and on a Windows machine, how is it different from "HeapAlloc"? And "__write" that is same as UNIX "write", but different from "WriteFile" in Windows? And HOW do you expect the backend to implement these? By calling "malloc"/"HeapAlloc", "write"/"WriteFile"? This is what the C library is for, it provides a set of independent functions that are reasonably well defined and reasonably portab...
2014 May 30
3
[LLVMdev] lit test suite on Windows always hangs.
I'm using Windows 8.1, and every time I run check-clang, I eventually end up with a bunch of hung processes. Generally this is an instance of clang.exe, a bunch of instances of FileCheck.exe, and occasionally an llc.exe and an opt.exe. Inside, the processes are all hung inside of calls to WriteFile() attempting to write to stdout. I notice some of the tests fail with output indicating that it expects a unix-like environment. For example: 207> ******************** 207> FAIL: Clang :: CodeGen/2004-06-17-UnorderedCompares.c (1109 of 7263) 207> ******************** TEST 'Clang...
2023 Aug 18
1
Increase data length for SMB2 write and read requests for Windows 10 clients
On Fri, Aug 18, 2023 at 04:25:28PM +0000, Jones Syue ??? wrote: >Hello Ivan, > >'FastCopy' has an option to revise max I/O size and works for SMB :) >it is a tool for file transferring and could be installed to win10, >download here: https://fastcopy.jp/ > >This is an example for writing, a job would write a file named '1GB.img' >from a local disk
2023 Aug 21
2
Increase data length for SMB2 write and read requests for Windows 10 clients
...vise FastCopy default setup) Process Name Operation Path Detail System TCP Send 10.19.7.63:64845 -> 10.19.250.98:445 Length: 8388724, startime: 3459115, endtime: 3459149, seqnum: 0, connid: 0 System TCP Receive 10.19.7.63:64845 -> 10.19.250.98:445 Length: 84, seqnum: 0, connid: 0 FastCopy.exe WriteFile \\10.19.250.98\Public\1GB.img Offset: 92,274,688, Length: 8,388,608, Priority: Normal 2. File Explorer (explorer.exe), 1MB, drag-and-drop files. Process Name Operation Path Detail explorer.exe ReadFile H:\1GB.img Offset: 55,574,528, Length: 1,048,576, Priority: Normal System ReadFile H:\1GB.img Of...
2001 Sep 04
0
AOL/Jr Monopoly game installer. Crash on exit
...tval=00014b58 ret=4110715b passed master doesn't match slave name 08074390:Ret kernel32.SetConsoleCursorPosition() retval=00000001 ret=404fb171 08074390:Call kernel32.GetStdHandle(fffffff5) ret=404f94c8 08074390:Ret kernel32.GetStdHandle() retval=00000008 ret=404f94c8 08074390:Call kernel32.WriteFile(00000008,405228e0,00000014,00000000,00000000) ret=404f94ce 08074390:Ret kernel32.WriteFile() retval=00000001 ret=404f94ce 08074390:Call kernel32.DebugActiveProcess(08068680) ret=404fa047 08074390:Ret kernel32.DebugActiveProcess() retval=00000001 ret=404fa047 08074390:Call kernel32.SetEvent(00000...
2017 Jun 16
2
Using LLD to create a .lib from a .def
...gt;> >>>> >>>> Then I give it def_contents that looks like: >>>> LIBRARY kernel32 >>>> EXPORTS >>>> ExitProcess >>>> GetConsoleMode >>>> GetStdHandle >>>> GetFileInformationByHandleEx >>>> WriteFile >>>> GetLastError >>>> >>>> >>>> with dll_path set to ./zig-cache/all.dll. This generates >>>> ./zig-cache/all.lib. >>>> >>>> The generated LLVM IR looks like: >>>> >>>> ; Function Attrs: nor...