flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pjd 07 Aug 2007, 08:47
Does anyone know which api call is used for retrieving command line arguments?
|
|||
![]() |
|
Yardman 07 Aug 2007, 08:54
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 02:27; edited 1 time in total |
|||
![]() |
|
shoorick 08 Aug 2007, 06:10
maybe this more correct (i've not tested it, just by docs):
Code: . invoke GlobalFree,[argv] invoke ExitProcess, 0 |
|||
![]() |
|
asmfan 08 Aug 2007, 07:39
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 08 Aug 2007, 16:33
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 09 Aug 2007, 04:53
check this: http://board.flatassembler.net/topic.php?t=6663
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.