https://github.com/python/cpython
Raw File
Tip revision: 5612078f68e9688fbf3b1d8565abc79b77501000 authored by Thomas Wouters on 22 May 2023, 12:01:29 UTC
Python 3.12.0b1
Tip revision: 5612078
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