flat assembler
Message board for the users of flat assembler.
Index
> Windows > CommandLine |
Author |
|
Pirata Derek 10 Jul 2009, 14:19
The GetCommandLineA returns with the address (offset) where system puts the command line for the caller program.
The command line also contains the full path of program! Example of program with command line: when you get EAX (offset) form GetCommandLineA you will find: "C:\windows\system\program.exe" "command line arguments....",0 But you find always the path in EAX return value, also if the program hasn't a command line: "C:\windows\system\program.exe",0 |
|||
10 Jul 2009, 14:19 |
|
wht36 11 Jul 2009, 17:24
GetCommandLine does not always return the full program path; for example, if program is ran from cmd.exe then the first argument is exactly what the user specified to call the program.
By the way, mine returns 0008 1EC8, so I don't think you can use a hard coded address. |
|||
11 Jul 2009, 17:24 |
|
Pirata Derek 13 Jul 2009, 12:06
Oh, yes.
I told it about normal PE GUI |
|||
13 Jul 2009, 12:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.