Hello,

Please help my about the: GetCommandLineA
example: c:\test\full.exe /first last

I want do show it
mov ah,09
int21h

or how can i use it?

Thank you.
Posted on 2002-06-06 08:05:55 by Fred556
Why are you trying to use interrupts with the Win32 API?
If you want to use DOS, then the API isn't available to you, and if you want to use Win32, then interrupts are a bad thing TM.

How do you use the GetCommandLine API?
Simple:


.data?
pCmdLine dd ?

.code
invoke GetCommandLine
mov pCmdLine, eax

Done!

Once you've done that, pCmdLine can be used like the address of any other string.

For example:


invoke GetCommandLine
invoke MessageBox, NULL, eax, NULL, MB_OK
invoke ExitProcess, 0


Mirno
Posted on 2002-06-06 08:25:59 by Mirno