LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
system-utils.h
Go to the documentation of this file.
1 
6 #pragma once
7 
13 int run_system(const char *c);
21 int run_system_output(const char *c, char **out);
30 int run_unprivileged(const char *c, void *input, void *output);
38 int run_privileged(const char *c, const char *p, int *ret);
39 
40 
45 const char *get_command_line();
51 char *get_windows_path();
63 char *get_program_path();
73 char *get_config_path();
char * get_windows_drive_path()
get the path of the drive Windows is installed on
Definition: system-utils.c:363
char * get_program_path()
find the path of this program
Definition: system-utils.c:366
char * get_config_path()
find the path of this ProgramData folder
Definition: system-utils.c:369
int run_unprivileged(const char *c, void *input, void *output)
run a command, similar to system(), returning pipes to the standard input and output of the process ...
Definition: system-utils.c:249
char * get_windows_path()
get the path of the Windows folder
Definition: system-utils.c:360
int run_system(const char *c)
run a command, similar to system()
Definition: system-utils.c:254
int run_system_output(const char *c, char **out)
run a command, similar to system(), collecting the program output
Definition: system-utils.c:244
int run_privileged(const char *c, const char *p, int *ret)
run a command, similar to system(), with administrator privileges
const char * get_command_line()
find the command line of this program
Definition: system-utils.c:372