WinMain.c 482 Bytes
Newer Older
1
/* Minimal main program -- everything is loaded from the library. */
2

3
#define WIN32_LEAN_AND_MEAN
4
#include <windows.h>
5

6
#include "Python.h"
7

8
extern int Py_Main(int, char **);
9 10

int WINAPI WinMain(
11 12 13 14
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPSTR lpCmdLine,          /* pointer to command line */
    int nCmdShow              /* show state of window */
15 16
)
{
17
    return Py_Main(__argc, __argv);
18
}