| 8 | #include <time.h> |
| 9 | |
| 10 | std::string GetEnv(const std::string& name) |
| 11 | { |
| 12 | char envStr[1024]; |
| 13 | envStr[0] = 0; |
| 14 | ::GetEnvironmentVariableA(name.c_str(), envStr, sizeof(envStr)); |
| 15 | return envStr; |
| 16 | } |
| 17 | |
| 18 | |
| 19 | static bool CreatePipeWithSecurityAttributes(HANDLE& hReadPipe, HANDLE& hWritePipe, SECURITY_ATTRIBUTES* lpPipeAttributes, int nSize) |