What is the signature of mainCRTStartup

2019-05-31 17:12发布

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条回答
爷、活的狠高调
2楼-- · 2019-05-31 17:50

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().

查看更多
登录 后发表回答