Skip to content

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

Open
@HotoRas

Description

@HotoRas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions