https://github.com/python/cpython
Raw File
Tip revision: 0fb18b02c8ad56299d6a2910be0bab8ad601ef24 authored by Thomas Wouters on 02 October 2023, 11:44:36 UTC
Python 3.12.0
Tip revision: 0fb18b0
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