recategorized
2,056 views

2 Answers

0 votes
0 votes

Answer : Win Main

Win main is the function which is provided to create windows application .The user-provided entry point for a graphical Windows-based application.

Reference : Win Main as Application Entry Point 

0 votes
0 votes

WinMain() is the C entry point function of any windows application. Like normal DOS/console based application which has main() function as C entry point, in windows we have WinMain() instead. WinMain() is a function which is called by system during creation of a process. First argument is the instance handle of the current process. Next is the previous instance. Command line arguments comes as next argument. Finally shell passes the show/display attribute of main window. WinMain() returns success as zero and error as non zero.

The WinMain function is called by the system as the initial entry point for a Win32-based application.

Syntax:

             

             int WINAPI WinMain(

               HINSTANCE hInstance,     /* [input] handle to current instance */

               HINSTANCE hPrevInstance, /* [input] handle to previous instance */

               LPSTR lpCmdLine,         /* [input] pointer to command line */

               int nCmdShow             /* [input] show state of window */

             );

Answer:

Related questions

2 votes
2 votes
2 answers
1
go_editor asked Jul 13, 2016
2,353 views
Which of the following operating system is better for implementing client-server network?Windows 95Windows 98Windows 2000All of these
1 votes
1 votes
2 answers
2
go_editor asked Jul 13, 2016
3,080 views
Everything below the system call interface and above the physical hardware is known asKernelBusShellStub
0 votes
0 votes
2 answers
3