https://github.com/python/cpython
Raw File
Tip revision: 9d34f60783b726de5bb0352d0efb1cbd23a4ac89 authored by Thomas Wouters on 15 February 2024, 13:30:16 UTC
Python 3.13.0a4
Tip revision: 9d34f60
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