In a Win32 GUI application, which function serves as the application's entry…
2012
In a Win32 GUI application, which function serves as the application's entry point?
Answer: C. WinMain — ConceptA graphical Windows program must expose an entry routine that the runtime invokes when its process starts. Under the Win32 convention, a GUI-subsystem…
- A.
WinApp - B.
WinAPI - C.
WinMain - D.
WinVoid
Attempted by 105 students.
Show answer & explanation
Correct answer: C
Concept
A graphical Windows program must expose an entry routine that the runtime invokes when its process starts. Under the Win32 convention, a GUI-subsystem program uses a dedicated entry-point signature rather than the console program's main function.
Application
Compare each offered name with documented
Win32terminology.WinMainis theWin32GUIentry function. Its parameters provide the application-instance handle, a legacy previous-instance value, the command line, and the initial show state.After control reaches
WinMain, a typical program registers a window class, creates its window, and processes the message loop.
Cross-check and contrast
WinAPIdenotes the overall Windows programming interface, not a single function name.WinAppandWinVoidare not documentedWin32entry-point identifiers.
Therefore, the function named WinMain serves as the entry point for a Win32 GUI application.