24 |
#include <windows.h> |
#include <windows.h> |
25 |
#include <sys/stat.h> |
#include <sys/stat.h> |
26 |
|
|
27 |
|
#include "wptErrors.h" |
28 |
#include "gpgme.h" |
#include "gpgme.h" |
29 |
|
|
30 |
|
|
286 |
si.hStdInput = in; |
si.hStdInput = in; |
287 |
si.wShowWindow = SW_HIDE; |
si.wShowWindow = SW_HIDE; |
288 |
if (!CreateProcess (NULL, (char*)cmd, NULL, NULL, TRUE, 0, |
if (!CreateProcess (NULL, (char*)cmd, NULL, NULL, TRUE, 0, |
289 |
NULL, NULL, &si, &pi)) |
NULL, NULL, &si, &pi)) { |
290 |
|
log_debug ("create_process: CreateProcess() failed ec=%d\r\n", |
291 |
|
(int)GetLastError ()); |
292 |
return -1; |
return -1; |
293 |
|
} |
294 |
WaitForSingleObject (pi.hProcess, INFINITE); |
WaitForSingleObject (pi.hProcess, INFINITE); |
295 |
CloseHandle (pi.hProcess); |
CloseHandle (pi.hProcess); |
296 |
return 0; |
return 0; |