torservice.cpp File Reference

Starts, stops, installs, and uninstalls a Tor service (Win32). More...

#include <QLibrary>
#include <vidalia.h>
#include "torservice.h"

Go to the source code of this file.

Defines

#define UNKNOWN_EXIT_CODE   -999999
#define LOAD_SERVICE_FN(f)


Detailed Description

Starts, stops, installs, and uninstalls a Tor service (Win32).

Version:
Id

Definition in file torservice.cpp.


Define Documentation

#define LOAD_SERVICE_FN (  ) 

Value:

do {                                         \
  void *fn;                                                             \
  if (!((fn = QLibrary::resolve("advapi32", #f)))) {                    \
      vWarn("Unable to load NT service function: %1").arg(#f);          \
      return false;                                                     \
    } else {                                                            \
      _service_fns.f = (f ## _fn) fn;                                   \
    }                                                                   \
  } while (0)

Referenced by TorService::loadServiceFunctions().

#define UNKNOWN_EXIT_CODE   -999999

Returned by TorService::exitCode() when we are unable to determine the actual exit code of the service (unless, of course, Tor returns -999999).

Definition at line 35 of file torservice.cpp.

Referenced by TorService::exitCode().


Generated on Wed Sep 5 15:49:28 2007 for Vidalia by  doxygen 1.5.3