Hudson Worden
Hudson Worden

Reputation: 2353

How do you access Windows Command Line Arguments?

I have been doing some Windows Assembly Language programming lately and I realized that I don't know how to access the Command Line parameters. I have searched online but I haven't found anything about it.(Perhaps I do not know how to phrase the question) Is Window's method of passing the parameters from the command line to the program the same as how Linux does it? What I mean by this is ebp initially set to point to argc?

Thanks

Upvotes: 2

Views: 1290

Answers (1)

arx
arx

Reputation: 16896

GetCommandLine retrieves a pointer to the unparsed command-line.

CommandLineToArgvW parses the command-line into an array of arguments. There isn't an ANSI version.

Upvotes: 6

Related Questions