libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

win32-svc.c File Reference
#include "rpcapd.h"
#include <pcap.h>
#include "fmtutils.h"
#include "portability.h"
#include "fileconf.h"
#include "log.h"
#include "win32-svc.h"
Include dependency graph for win32-svc.c:

Go to the source code of this file.

Functions

static void WINAPI svc_main (DWORD argc, char **argv)
 
static void WINAPI svc_control_handler (DWORD Opcode)
 
static void update_svc_status (DWORD state, DWORD progress_indicator)
 
BOOL svc_start (void)
 

Variables

static SERVICE_STATUS_HANDLE service_status_handle
 
static SERVICE_STATUS service_status
 

Function Documentation

◆ svc_control_handler()

static void WINAPI svc_control_handler ( DWORD  Opcode)
static

Definition at line 72 of file win32-svc.c.

References update_svc_status().

Referenced by svc_main().

◆ svc_main()

static void WINAPI svc_main ( DWORD  argc,
char **  argv 
)
static

◆ svc_start()

BOOL svc_start ( void  )

Definition at line 50 of file win32-svc.c.

References LOGPRIO_ERROR, PCAP_ERRBUF_SIZE, PROGRAM_NAME, rpcapd_log(), and svc_main().

Referenced by main().

◆ update_svc_status()

static void update_svc_status ( DWORD  state,
DWORD  progress_indicator 
)
static

Definition at line 162 of file win32-svc.c.

References service_status, and service_status_handle.

Referenced by svc_control_handler(), and svc_main().

Variable Documentation

◆ service_status

SERVICE_STATUS service_status
static

Definition at line 44 of file win32-svc.c.

Referenced by svc_main(), and update_svc_status().

◆ service_status_handle

SERVICE_STATUS_HANDLE service_status_handle
static

Definition at line 43 of file win32-svc.c.

Referenced by svc_main(), and update_svc_status().