14.1.5 Creating the Application Entry Point

Create the application entry point, WinMain, and make sure that it is declared a public function. The function should have the following form:

cProc WinMain, <PUBLIC>, <si,di>
     parmW hInstance
     parmW hPrevInstance
     parmD lpCmdLine
     parmW nCmdShow
cBegin WinMain
     .
     .
     .
cEnd WinMain

sEnd

The WinMain function should be defined within the standard code segment, CODE.