Guido van Rossum | 639ccae | 1998-08-08 20:00:49 +0000 | [diff] [blame] | 1 | /* Minimal main program -- everything is loaded from the library. */ |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 2 | |
Fredrik Lundh | ddbc118 | 2000-07-08 18:06:41 +0000 | [diff] [blame] | 3 | #define WINDOWS_LEAN_AND_MEAN |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 4 | #include <windows.h> |
Fredrik Lundh | ddbc118 | 2000-07-08 18:06:41 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | 67ab672 | 1998-08-08 19:58:59 +0000 | [diff] [blame] | 6 | #include "Python.h" |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 7 | |
| 8 | extern int Py_Main(); |
| 9 | |
| 10 | int WINAPI WinMain( |
Fredrik Lundh | ddbc118 | 2000-07-08 18:06:41 +0000 | [diff] [blame] | 11 | HINSTANCE hInstance, /* handle to current instance */ |
| 12 | HINSTANCE hPrevInstance, /* handle to previous instance */ |
| 13 | LPSTR lpCmdLine, /* pointer to command line */ |
| 14 | int nCmdShow /* show state of window */ |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 15 | ) |
| 16 | { |
Fredrik Lundh | ddbc118 | 2000-07-08 18:06:41 +0000 | [diff] [blame] | 17 | return Py_Main(__argc, __argv); |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 18 | } |