diff options
Diffstat (limited to 'win32.h')
-rw-r--r-- | win32.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -28,6 +28,12 @@ #include "mtu.h" +/* location of executables */ +#define SYS_PATH_ENV_VAR_NAME "SystemRoot" /* environmental variable name that normally contains the system path */ +#define DEFAULT_WIN_SYS_PATH "C:\\WINDOWS" /* --win-sys default value */ +#define NETSH_PATH_SUFFIX "\\system32\\netsh.exe" +#define WIN_ROUTE_PATH_SUFFIX "\\system32\\route.exe" + /* * Win32-specific OpenVPN code, targetted at the mingw * development environment. @@ -250,5 +256,14 @@ bool init_security_attributes_allow_all (struct security_attributes *obj); /* return true if filename is safe to be used on Windows */ bool win_safe_filename (const char *fn); +/* add constant environmental variables needed by Windows */ +struct env_set; +void env_set_add_win32 (struct env_set *es); + +/* get and set the current windows system path */ +void set_win_sys_path (const char *newpath, struct env_set *es); +void set_win_sys_path_via_env (struct env_set *es); +char *get_win_sys_path (void); + #endif #endif |