xdasd_w32.c File Reference

OpenXDAS Windows service functionality. More...

#include <xdas_base.h>
#include "xdasd_main.h"
#include "xdasd_log.h"
#include "xdasd_cmdline.h"
#include <stdio.h>
#include <errno.h>
#include <windows.h>
#include <tchar.h>

Go to the source code of this file.

Defines

#define WIN32_LEAN_AND_MEAN
#define SERVICENAME   _T("xdasd")
#define SERVICEDISPLAYNAME   _T("Distributed Audit Service")
#define SERVICEDESCRIPTION

Functions

static TCHAR * xdasd_gle_text (void)
 Returns GetLastError error text as a pointer to a static buffer.
static int xdasd_w32svc_install (int automatic)
 Install the Windows OpenXDAS service.
static int xdasd_w32svc_stop_handle (SC_HANDLE hsvc, int silent)
 Stop the Windows OpenXDAS service by handle.
static int xdasd_w32svc_remove (void)
 Uninstall the Windows OpenXDAS service.
static int xdasd_w32svc_start (void)
 Start the Windows OpenXDAS service.
static int xdasd_w32svc_stop (void)
 Stop the Windows service.
static BOOL xdasd_scmgr_report (DWORD curstate, DWORD ecode, DWORD hint)
 Reports the current status of the service to the SCM.
static void xdasd_stop_service (void)
 Signal the service to stop, and then report it.
static void xdasd_start_service (int argc, char **argv)
 Start the service and report it.
static VOID WINAPI xdasd_svc_control (DWORD ccode)
 Called by the SCM whenever ControlService is called on this service.
static void WINAPI xdasd_service_main (DWORD argc, LPTSTR *argv)
 Win32 service main entry point.
int main (int argc, char **argv)
 The main program entry point: Win32 and Unix console/daemon/service.

Variables

static SERVICE_STATUS_HANDLE s_hss
static SERVICE_STATUS s_status


Detailed Description

OpenXDAS Windows service functionality.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file xdasd_w32.c.


Define Documentation

#define WIN32_LEAN_AND_MEAN

Definition at line 48 of file xdasd_w32.c.


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6