https://github.com/python/cpython
Raw File
Tip revision: 6abddd9f6afdddc09031989e0deb25e301ecf315 authored by Thomas Wouters on 06 February 2024, 20:16:03 UTC
Python 3.12.2
Tip revision: 6abddd9
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