#include <windows.h>

typedef int (__cdecl *PYMAIN)(int, char **);
static HINSTANCE dll = NULL;

int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
						LPSTR lpCmdLine, int nCmdShow )
{
	int rc;
	char *args[3];

	// junk on the end of strings so the binary can be hacked
	args[0] = "app/launch.py\000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ";
	args[1] = "app/launch.py\000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ";
	args[2] = lpCmdLine;

	HINSTANCE dll = LoadLibrary("python25.dll");
	PYMAIN Py_Main = (PYMAIN) GetProcAddress(dll, "Py_Main");

	rc = (Py_Main)(3, args);
	return rc;
}


