Staging
v0.5.1
https://github.com/python/cpython
Revision 043d5e55142bee99a7e94031c94c1ca3afc3ad38 authored by Fred Drake on 02 March 2001, 16:46:42 UTC, committed by Fred Drake on 02 March 2001, 16:46:42 UTC
1 parent 043732e
Raw File
Tip revision: 043d5e55142bee99a7e94031c94c1ca3afc3ad38 authored by Fred Drake on 02 March 2001, 16:46:42 UTC
For copyfile(), be explicit that src and dst are file names; that was only
Tip revision: 043d5e5
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>

#include "Python.h"

extern int Py_Main(int, char **);

int WINAPI WinMain(
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPSTR lpCmdLine,          /* pointer to command line */
    int nCmdShow              /* show state of window */
)
{
    return Py_Main(__argc, __argv);
}
back to top