What is the signature of mainCRTStartup

我只是一个虾纸丫 提交于 2019-12-08 04:09:31

问题


I am looking for the signature of mainCRTStartup. Is it :

int mainCRTStartup( int argc, char *argv[] )

Or something else ?

I find it so irritating that microsoft isn't even able to give the définition of their own entry points...

Thanks for your help.


回答1:


In the crtexe.c file, distributed with VisualStudio, you can see the definition. It is:

int mainCRTStartup(void);

The command line is not obtained as an argument to the entry point, but recovered by using the function GetCommandLine().



来源:https://stackoverflow.com/questions/24882963/what-is-the-signature-of-maincrtstartup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!