guistart.h

来自「一个关于windows内置cab文件的源码,能够将cab文件解压缩」· C头文件 代码 · 共 44 行

H
44
字号

// _________________________________________________________________
//
//                            GuiStart.h
//              Startup Code for Win32 GUI Applications
//                   01-20-1997 Sven B. Schreiber
//                           sbs@orgon.com
// _________________________________________________________________



// =================================================================
// STARTUP CODE
// =================================================================

void WinStartup ()
    {
    STARTUPINFO StartupInfo;
    PSTR        psCmdLine;
    int         iCmdShow;
    char        cQuote;

    psCmdLine = GetCommandLine ();
    while (*psCmdLine++ == ' ');
    cQuote = (*--psCmdLine == '"' ? *psCmdLine++ : ' ');
    while (*psCmdLine && (*psCmdLine++ != cQuote));
    while (*psCmdLine++ == ' ');
    psCmdLine--;

    GetStartupInfo (&StartupInfo);
    iCmdShow = (StartupInfo.dwFlags & STARTF_USESHOWWINDOW ?
                (int) StartupInfo.wShowWindow :
                SW_SHOWDEFAULT);

    ExitProcess (WinMain (GetModuleHandle (NULL),
                          NULL,
                          psCmdLine,
                          iCmdShow));
    }

// =================================================================
// END OF FILE
// =================================================================

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?