Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Win] May introduce the entry point of GUI Windows programs WinMain #7103

Open
HotoRas opened this issue Oct 26, 2024 · 2 comments
Open

[Win] May introduce the entry point of GUI Windows programs WinMain #7103

HotoRas opened this issue Oct 26, 2024 · 2 comments
Labels
Type: Enhancement New feature or request

Comments

@HotoRas
Copy link

HotoRas commented Oct 26, 2024

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

@astrelsky
Copy link
Contributor

DllMain would be great too.

@HotoRas
Copy link
Author

HotoRas commented Oct 26, 2024 via email

@ryanmkurtz ryanmkurtz added the Type: Enhancement New feature or request label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants