Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

# win32-svc.c File Reference

`#include "rpcapd.h"`
`#include <signal.h>`
`#include "windows.h"`
`#include <pcap.h>`
`#include "sockutils.h"`
`#include "fileconf.h"`

Go to the source code of this file.

## Defines
#define | _WINSOCKAPI_
## Functions
void | svc_geterr (char *str)
void WINAPI | svc_main (DWORD argc, char **argv)
int | svc_start (void)
void WINAPI | svc_control_handler (DWORD Opcode)
## Variables
SERVICE_STATUS_HANDLE | service_status_handle
SERVICE_STATUS | service_status

## Define Documentation

#define _WINSOCKAPI_

| Definition at line 36 of file win32-svc.c.

## Function Documentation

void WINAPI svc_control_handler | ( | DWORD | Opcode | ) |

| Definition at line 89 of file win32-svc.c. References fileconf_read(), service_status, and service_status_handle. Referenced by svc_main().

void svc_geterr | ( | char * | str | ) |

| Definition at line 70 of file win32-svc.c. References PCAP_ERRBUF_SIZE, snprintf, and SOCK_ASSERT. Referenced by svc_start().

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

| Definition at line 149 of file win32-svc.c. References main_startup(), PROGRAM_NAME, service_status, service_status_handle, and svc_control_handler(). Referenced by svc_start().

int svc_start | ( | void |  | ) |

| Definition at line 52 of file win32-svc.c. References PROGRAM_NAME, svc_geterr(), and svc_main(). Referenced by main().

## Variable Documentation

SERVICE_STATUS service_status

| Definition at line 44 of file win32-svc.c. Referenced by svc_control_handler(), and svc_main().

SERVICE_STATUS_HANDLE service_status_handle

| Definition at line 43 of file win32-svc.c. Referenced by svc_control_handler(), and svc_main().

documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.