The arguments for main are defined by standards:
int main(int argc, char* argv[])
argc
is the size of the
argv
array, which contains a set of C strings (null terminated). The first string will be the path to the directory out of which the program was launched, ending with the name of the
.exe file itself.
An implementation that allows you to invoke
main
or pass it different arguments would not be compliant with standards. I haven't used
WinMain
, but my guess is that your choices are to either use it or regular
main
.
It would be also useful to know what you're trying to achieve.