flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pjd
Does anyone know which api call is used for retrieving command line arguments?
|
|||
![]() |
|
Yardman
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 02:27; edited 1 time in total |
|||
![]() |
|
shoorick
maybe this more correct (i've not tested it, just by docs):
Code: . invoke GlobalFree,[argv] invoke ExitProcess, 0 |
|||
![]() |
|
asmfan
Code: invoke LocalFree, [stringmem] wrong while Code: invoke GlobalFree,[argv] is right. GetCommandLine returns only pointer on already allocated by loader memory. While CommandLineToArgvW allocates additional memory for all args within commandline. Thus this allocated memory should be freed. _________________ Any offers? |
|||
![]() |
|
pjd
What I really wanted was something that gets one argument at a time and returns a pointer to a null-terminated string like on linux.
that won't be hard to write though. Is there anything that will show me what important functions are in the api? using msdn is like stumbling blind until the solution appears out of nowhere |
|||
![]() |
|
shoorick
check this: http://board.flatassembler.net/topic.php?t=6663
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.