flat assembler
Message board for the users of flat assembler.

Index > Windows > how to get strerr, stdin, and std out

Author
Thread Post new topic Reply to topic
ishkabible



Joined: 13 Sep 2010
Posts: 54
ishkabible
basic question, how do you get the pointer to stdin, stdout, stderr? do i need to open a file with file path "CON"? or is there a better way?
Post 04 Jan 2011, 01:33
View user's profile Send private message Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932
CONIN$ and CONOU$ - console handles

GetStdHandle() - stdout/err/in mandles.

program might have defined std handle, wich may be console, or it might be anything. It might of course have not defined std handle, and then GSH return error.
Post 04 Jan 2011, 02:33
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
how can it be used with fasm, to do pe console for apache cgi?


invoke WhatToImport?
Post 04 Jan 2011, 03:37
View user's profile Send private message Visit poster's website Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932
dont mix consoles with io! Console is just a conviniant way of representing io stream!
cgi use io, not console.
Post 04 Jan 2011, 18:15
View user's profile Send private message Reply with quote
ishkabible



Joined: 13 Sep 2010
Posts: 54
ishkabible
so im really confused, is GetStdHandle windows API? if so what .dll is it located in, msvcrt.dll?
Post 05 Jan 2011, 00:50
View user's profile Send private message Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932
kernel32.dll
Post 05 Jan 2011, 02:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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 GitHub, YouTube, Twitter.

Website powered by rwasa.