flat assembler
Message board for the users of flat assembler.

Index > Windows > using printf in GUI application

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
sleepsleep wrote:
where the word, "world" gone?
This is due to %s conversion specification, which is defined as "a sequence of non-white-space characters" in ISO/IEC 9899:TC3 draft.

I guess that CreateProcess() family use supplied STARTUPINFO.hStd* values even for GUI executables. It should be checked though.
Post 12 Mar 2014, 20:30
View user's profile Send private message Reply with quote
nmaps



Joined: 26 Oct 2012
Posts: 8
nmaps
To be exact, stdxxx handles are stored in the PEB at the ProcessParameters value which is a RTL_USER_PROCESS_PARAMETERS struct (which has StandardInput, StandardOutput, and StandardError HANDLES). You can either access them that way or just through Get/SetStdHandle() with the WinAPI.

Any i/o HANDLE can be used - pipes, files, consoles.
Post 16 Apr 2014, 03:24
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.