zoukankan      html  css  js  c++  java
  • 入口函数WinMain

    int WINAPI WinMain()
      HINSTANCE hInstance, 
      HINSTANCE hPrevInstance, 
      LPWSTR lpCmdLine, 
      int nShowCmd 
    ); 

    Parameters

    hInstance
    [in] Handle to the current instance of the application.
    hPrevInstance
    [in] Handle to the previous instance of the application. For a Win32-based application, this parameter is always NULL.

    If you need to detect whether another instance already exists, create a uniquely named mutex using the CreateMutex function. CreateMutex will succeed even if the mutex already exists, but the GetLastError function will return ERROR_ALREADY_EXISTS. This indicates that another instance of your application exists, because it created the mutex first.

    lpCmdLine
    [in] Pointer to a null-terminated string that specifies the command line for the application, excluding the program name.
    nShowCmd
    [in] Specifies how the window is to be shown. This parameter can be one of the following values:
    ValueDescription
    SW_HIDE Hides the window and activates another window.
    SW_SHOW Activates a window and displays it in its current size and position.
    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 Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position (same as SW_RESTORE).
  • 相关阅读:
    pixijs shader 制作百叶窗效果
    pixijs shader 贴图溶解效果教程
    shadertoy使用教程
    pixijs shader教程
    glsl shader简明教程系列1
    javascript判断mp3是否播放完
    wxWidgets Tutorial
    NYOJ 214 最长上升子序列nlogn
    解决codeforces访问慢的问题
    dp 斯特林数 HDU2512一卡通大冒险
  • 原文地址:https://www.cnblogs.com/qiwu1314/p/8316386.html
Copyright © 2011-2022 走看看