cvs: pecl /win32std win32std.c

From: Date: Fri, 30 Jul 2004 23:41:54 +0000
Subject: cvs: pecl /win32std win32std.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1614@lists.php.net to get a copy of this message
fmk Fri Jul 30 19:41:54 2004 EDT Modified files: /pecl/win32std win32std.c Log: Make this compile in non ZTS builds http://cvs.php.net/diff.php/pecl/win32std/win32std.c?r1=1.2&r2=1.3&ty=u Index: pecl/win32std/win32std.c diff -u pecl/win32std/win32std.c:1.2 pecl/win32std/win32std.c:1.3 --- pecl/win32std/win32std.c:1.2 Tue Dec 30 12:43:07 2003 +++ pecl/win32std/win32std.c Fri Jul 30 19:41:53 2004 @@ -27,6 +27,7 @@ #include <mmsystem.h> #include <commdlg.h> +#include <ShellAPI.h> /* Return the Win32 error string for the last called Win32 function */ const char * win32_strerror( char * buffer, long buffer_len) @@ -55,6 +56,9 @@ The shell act the same way when you double click on an icon (action=NULL) or when you choose a menu item on the right click button This way you can also execute programs that are totaly detached from the current one (useful with DirectX games for exemple). */ + +#define SHELL_EXEC_ERROR(err) case err: zend_error( E_WARNING, "Unable to execute shell [%s] on '%s' (%s)", action, file, #err ); break; + PHP_FUNCTION(win_shell_execute) { char *action= NULL, *file= NULL, *args=NULL, *dir=NULL; @@ -71,7 +75,6 @@ case 0: zend_error(E_WARNING,"shell_execute failed - No more system memory"); break; -#define SHELL_EXEC_ERROR(err) case err: zend_error( E_WARNING, "Unable to execute shell [%s] on '%s' (%s)", action, file, #err ); break; SHELL_EXEC_ERROR(ERROR_FILE_NOT_FOUND ); SHELL_EXEC_ERROR(ERROR_PATH_NOT_FOUND); SHELL_EXEC_ERROR(ERROR_BAD_FORMAT );

« previous php.pecl.cvs (#1614) next »