Hi,
If I create a console app and start it using command-line parameters, where do the parameters I passed end up?
Best regards,
Astro.
\masm32\help\masmlib.chm - look for GetCL.
They end up in your process environment block (PEB), where every other information is stored. (well, the ring3 portion that is)
Common way to access cmd. line parameters is to parse GetCommandLine(A|W) result which, if you trace it with a debugger, is the same value as in PEB.
Thanks! Something else to research.
Best regards,
Astro.
Another option is to use the __getmainargs function exported by msvcrt.dll