Previous: , Up: Embedding API   [Contents][Index]

5.2.16 Useful Windows functions

Serveez is meant to run on Windows systems as well (with some restrictions of course). These functions are available with the Windows implementation of the Serveez core API only. They allow access to the Windows registry database and some other useful things.

Function: int svz_windoze_daemon_control (char *prog)

If prog is non-NULL, start the daemon thread with it. Otherwise (if prog is NULL), stop the daemon thread. Return 0 on success, -1 on failure.

Function: WCHAR * svz_windoze_asc2uni (CHAR *asc)

Convert an ASCII string into a UNICODE string.

Function: CHAR * svz_windoze_uni2asc (WCHAR *unicode)

Convert a UNICODE string into an ASCII string.