https://github.com/python/cpython
Raw File
Tip revision: b861ba4a8247af8159df1e01d33157cf57705067 authored by Thomas Wouters on 04 April 2023, 15:51:44 UTC
Python 3.12.0a7
Tip revision: b861ba4
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