|
OpenVPN
|
#include "tap.h"#include "error.h"#include <objbase.h>#include <setupapi.h>#include <stdio.h>#include <wchar.h>
Go to the source code of this file.
Functions | |
| static void | usage (void) |
| Print the help message. | |
| static BOOL | is_adapter_name_available (LPCWSTR name, struct tap_adapter_node *adapter_list, BOOL log) |
| Checks if adapter with given name doesn't already exist. | |
| static LPWSTR | get_unique_adapter_name (LPCWSTR hwid, struct tap_adapter_node *adapter_list) |
| Returns unique adapter name based on hwid or NULL if name cannot be generated. | |
| int __cdecl | wmain (int argc, LPCWSTR argv[]) |
| Program entry point. | |
| bool | dont_mute (unsigned int flags) |
| Check muting filter. | |
| void | x_msg_va (const unsigned int flags, const char *format, va_list arglist) |
Variables | |
| const WCHAR | title_string [] |
| static const WCHAR | usage_message [] |
| static const WCHAR | usage_message_create [] |
| static const WCHAR | usage_message_list [] |
| static const WCHAR | usage_message_delete [] |
|
static |
|
static |
Checks if adapter with given name doesn't already exist.
Definition at line 130 of file main.c.
References tap_adapter_node::pNext.
Referenced by get_unique_adapter_name(), and wmain().
|
static |
Print the help message.
Definition at line 121 of file main.c.
References title_string, and usage_message.
Referenced by wmain().
| int __cdecl wmain | ( | int | argc, |
| LPCWSTR | argv[] | ||
| ) |
Program entry point.
Definition at line 207 of file main.c.
References _L, get_unique_adapter_name(), i, is_adapter_name_available(), tap_adapter_node::pNext, tap_adapter_node::szName, tap_create_adapter(), tap_delete_adapter(), tap_free_adapter_list(), tap_list_adapters(), tap_set_adapter_name(), title_string, usage(), usage_message_create, usage_message_delete, and usage_message_list.
| void x_msg_va | ( | const unsigned int | flags, |
| const char * | format, | ||
| va_list | arglist | ||
| ) |
| const WCHAR title_string[] |
|
static |
Definition at line 44 of file main.c.
Referenced by usage().
|
static |
Definition at line 61 of file main.c.
Referenced by wmain().
|
static |
|
static |
Definition at line 86 of file main.c.
Referenced by wmain().