[英]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. 最近,我一直在进行一些Windows汇编语言编程,但我意识到我不知道如何访问命令行参数。 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?
我已经在网上搜索过,但没有找到任何有关它的信息。(也许我不知道该如何表达问题)Window将命令行中的参数传递给程序的方法是否与Linux一样? What I mean by this is ebp initially set to point to argc?
我的意思是, ebp最初设置为指向argc吗?
Thanks 谢谢
GetCommandLine retrieves a pointer to the unparsed command-line. GetCommandLine检索指向未解析的命令行的指针。
CommandLineToArgvW parses the command-line into an array of arguments. CommandLineToArgvW将命令行解析为参数数组。 There isn't an ANSI version.
没有ANSI版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.