[Win32 API] WinMain()

Syntax _____________________________________________________________________________________
int WINAPI WinMain(HINSTANCE hInstance,
                   HINSTANCE hPrevInstance,
                   LPSTR lpCmdLine,
                   int nCmdShow);
_______________________________________________________________________


Parameters

  • hInstance : Handle to the current instance of the App.
  • hPrevInstance : Handle to the previous instance of the App. 
    • Win32-based application, this parameter is always NULL.
  • lpCmdLine : Point to a null-terminated string
    • the command line for the application
    • like c style - int main(string args[])
  • nShowCmd : Specifies how the window is to be shown.
    • This parameter can be one of the following values
      • SW_HIDE : Hides the window.
      • SW_SHOW : Displays the window.
      • SW_SHOWNA : Displays a window in its current state. The active window remains active.
      • SW_SHOWNOACTIVATE : Displays a window in its most recent size and position. The active window remains active.
      • SW_SHOWNORMAL : Actives & display a window.

댓글

이 블로그의 인기 게시물

[Win32 API] WINAPI - 함수호출규약

JAVA Frame Icon setting

JAVA Spinner