flat assembler
Message board for the users of flat assembler.

Index > Windows > How hide console when im using it from msvcrt?

Author
Thread Post new topic Reply to topic
Hunter13



Joined: 05 Jan 2005
Posts: 13
Hunter13
Has got somebody idea how hide console window when im using it from msvcrt(system) and with library win32a pls Smile)

Code:
format PE GUI 4.0
entry start

include 'Include\win32a.inc'

b equ byte
section '.code' code readable executable

start:
        invoke  system,command
        invoke  ExitProcess,0


section '.data' data readable writeable

command         db 'dir c:\ > easy.txt',0

section '.idata' import data readable writeable

library msvcrt,'MSVCRT.DLL'

import  msvcrt,\
        system,'system'    

_________________
beauty is anywhere welcome guest
Post 19 Jan 2005, 14:31
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
beppe85



Joined: 23 Oct 2004
Posts: 181
beppe85
invoke FreeConsole from Kernel32.dll
Post 19 Jan 2005, 19:05
View user's profile Send private message Reply with quote
Hunter13



Joined: 05 Jan 2005
Posts: 13
Hunter13
Dont going...
Post 19 Jan 2005, 19:24
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Use CreateProcess() instead of system(). Use the "DETACHED_PROCESS" flag for dwCreationFlags. Specify a new hStdOutput in the STARTUPINFO structure.
Post 19 Jan 2005, 19:38
View user's profile Send private message Visit poster's website Reply with quote
Hunter13



Joined: 05 Jan 2005
Posts: 13
Hunter13
Can you write example please im noob
Post 19 Jan 2005, 19:41
View user's profile Send private message Visit poster's website ICQ Number 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 YouTube, Twitter.

Website powered by rwasa.