wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
main_winsvc.c File Reference

WPA Supplicant / main() function for Win32 service. More...

#include "includes.h"
#include <windows.h>
#include "common.h"
#include "wpa_supplicant_i.h"
#include "eloop.h"

Macros

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

Functions

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

Detailed Description

WPA Supplicant / main() function for Win32 service.

The root of wpa_supplicant configuration in registry is HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant. This level includes global parameters and a 'interfaces' subkey with all the interface configuration (adapter to confname mapping). Each such mapping is a subkey that has 'adapter' and 'config' values.

This program can be run either as a normal command line application, e.g., for debugging, with 'wpasvc.exe app' or as a Windows service. Service need to be registered with 'wpasvc.exe reg <full path to wpasvc.exe>'. After this, it can be started like any other Windows service (e.g., 'net start wpasvc') or it can be configured to start automatically through the Services tool in administrative tasks. The service can be unregistered with 'wpasvc.exe unreg'.