Electroneum
Loading...
Searching...
No Matches
w_inst.h File Reference

Go to the source code of this file.

Functions

void wsvc_install (FILE *out, const char *rename)
void wsvc_remove (FILE *out)
void wsvc_rc_start (FILE *out)
void wsvc_rc_stop (FILE *out)
void wsvc_err2str (char *str, size_t len, const char *fixed, DWORD err)

Detailed Description

Contains install and remove functions that manipulate the windows services API and windows registry.

Definition in file w_inst.h.

Function Documentation

◆ wsvc_err2str()

void wsvc_err2str ( char * str,
size_t len,
const char * fixed,
DWORD err )

Convert windows GetLastError() value to a neat string.

Parameters
strdestination buffer
lenlength of dest buffer
fixedfixed text to prepend to string.
errthe GetLastError() value.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wsvc_install()

void wsvc_install ( FILE * out,
const char * rename )

Install service in servicecontrolmanager, setup registry

Parameters
outdebug output printed here (errors). or NULL.
renameif nonNULL this executable is not unbound.exe but this name.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wsvc_rc_start()

void wsvc_rc_start ( FILE * out)

Start the service from servicecontrolmanager, tells OS to start daemon.

Parameters
outdebug output printed here (errors). or NULL.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wsvc_rc_stop()

void wsvc_rc_stop ( FILE * out)

Stop the service from servicecontrolmanager, tells OS to stop daemon.

Parameters
outdebug output printed here (errors). or NULL.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wsvc_remove()

void wsvc_remove ( FILE * out)

Remove installed service from servicecontrolmanager, registry entries

Parameters
outdebug output printed here (errors). or NULL.
Here is the call graph for this function:
Here is the caller graph for this function: