Open
Description
Is your feature request related to a problem? Please describe.
I won't argue the void entry(void)
is the entry point, but that point is NOT where programmers touch: they consider int WinMain((int)(HINSTANCE) hInst, (int)(HINSTANCE) hInstPrv, (byte*)(LPSTR)(LPCSTR)(LPCTSTR) param, int winState)
as entry.
Describe the solution you'd like
In ___tmainCRTStartup()
, it'd be nice to automate to set the name using byte* __wincmdln()
as argln
, and the function using those as param as WinMain.
Describe alternatives you've considered
Alternatives are not set: I thought about setting WinMain as the entry, but that's always false since it's being called from ___tmainCRTStartup()
being called from entry()
.
Additional context
- Microsoft documents about WinMain
- ___tmainCRTStartup is not documented.