mirror of
https://github.com/php/php-gtk-src.git
synced 2026-03-27 02:32:15 +01:00
20 lines
449 B
C
20 lines
449 B
C
#include <windows.h>
|
|
#include <process.h>
|
|
|
|
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
|
|
)
|
|
{
|
|
char *args[4], *prog;
|
|
|
|
prog = "d:\\php4\\php.exe";
|
|
args[0] = prog;
|
|
args[1] = "-q";
|
|
args[2] = lpCmdLine;
|
|
args[3] = NULL;
|
|
|
|
return _spawnvp(_P_DETACH, prog, args);
|
|
} |