Defines | Functions | Variables
main_winsvc.c File Reference
#include "includes.h"
#include <windows.h>
#include "common.h"
#include "wpa_supplicant_i.h"
#include "eloop.h"
Include dependency graph for main_winsvc.c:

Go to the source code of this file.

Defines

#define TBUFLEN   255
#define TSTR   "%s"
#define WPA_KEY_PREFIX   TEXT("SOFTWARE\\wpa_supplicant")
#define WPA_KEY_ROOT   HKEY_LOCAL_MACHINE
#define WPASVC_DESCRIPTION   TEXT("Provides IEEE 802.1X and WPA/WPA2 supplicant functionality")
#define WPASVC_DISPLAY_NAME   TEXT("wpa_supplicant service")
#define WPASVC_NAME   TEXT("wpasvc")

Functions

int main (int argc, char *argv[])
static int read_interface (struct wpa_global *global, HKEY _hk, const TCHAR *name)
static int register_service (const TCHAR *exe)
static void WINAPI service_ctrl_handler (DWORD control_code)
static void WINAPI service_start (DWORD argc, LPTSTR *argv)
static DWORD svc_thread (LPDWORD param)
static int unregister_service (void)
static int wpa_supplicant_thread (void)

Variables

static HANDLE kill_svc
static SERVICE_STATUS svc_status
static SERVICE_STATUS_HANDLE svc_status_handle

Define Documentation

#define TBUFLEN   255
#define TSTR   "%s"

Definition at line 63 of file main_winsvc.c.

#define WPA_KEY_PREFIX   TEXT("SOFTWARE\\wpa_supplicant")

Definition at line 57 of file main_winsvc.c.

#define WPA_KEY_ROOT   HKEY_LOCAL_MACHINE

Definition at line 54 of file main_winsvc.c.

#define WPASVC_DESCRIPTION   TEXT("Provides IEEE 802.1X and WPA/WPA2 supplicant functionality")

Definition at line 43 of file main_winsvc.c.

#define WPASVC_DISPLAY_NAME   TEXT("wpa_supplicant service")

Definition at line 40 of file main_winsvc.c.

#define WPASVC_NAME   TEXT("wpasvc")

Definition at line 37 of file main_winsvc.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 421 of file main_winsvc.c.

static int read_interface ( struct wpa_global global,
HKEY  _hk,
const TCHAR *  name 
) [static]

Definition at line 67 of file main_winsvc.c.

static int register_service ( const TCHAR *  exe) [static]

Definition at line 260 of file main_winsvc.c.

static void WINAPI service_ctrl_handler ( DWORD  control_code) [static]

Definition at line 347 of file main_winsvc.c.

static void WINAPI service_start ( DWORD  argc,
LPTSTR *  argv 
) [static]

Definition at line 368 of file main_winsvc.c.

static DWORD svc_thread ( LPDWORD  param) [static]

Definition at line 245 of file main_winsvc.c.

static int unregister_service ( void  ) [static]

Definition at line 301 of file main_winsvc.c.

static int wpa_supplicant_thread ( void  ) [static]

Definition at line 140 of file main_winsvc.c.


Variable Documentation

HANDLE kill_svc [static]

Definition at line 47 of file main_winsvc.c.

SERVICE_STATUS svc_status [static]

Definition at line 50 of file main_winsvc.c.

SERVICE_STATUS_HANDLE svc_status_handle [static]

Definition at line 49 of file main_winsvc.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:42