https://github.com/python/cpython
Raw File
Tip revision: f9774e57d84162ff0cba0b17a3dcdb93dfbce45e authored by Thomas Wouters on 07 March 2023, 21:41:50 UTC
Python 3.12.0a6
Tip revision: f9774e5
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#include "Python.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>  /* __argc, __wargv */

int WINAPI wWinMain(
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPWSTR lpCmdLine,         /* pointer to command line */
    int nCmdShow              /* show state of window */
)
{
    return Py_Main(__argc, __wargv);
}
back to top