ReactOS 0.4.15-dev-5666-gc548b97
rassapi.h
Go to the documentation of this file.
1#ifndef _RASSAPI_H
2#define _RASSAPI_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7#ifndef UNLEN
8#include <lmcons.h>
9#endif
10#define RASSAPI_MAX_PHONENUMBER_SIZE 128
11#define RASSAPI_MAX_MEDIA_NAME 16
12#define RASSAPI_MAX_PORT_NAME 16
13#define RASSAPI_MAX_DEVICE_NAME 128
14#define RASSAPI_MAX_DEVICETYPE_NAME 16
15#define RASSAPI_MAX_PARAM_KEY_SIZE 32
16#define RASPRIV_NoCallback 0x01
17#define RASPRIV_AdminSetCallback 0x02
18#define RASPRIV_CallerSetCallback 0x04
19#define RASPRIV_DialinPrivilege 0x08
20#define RASPRIV_CallbackType (RASPRIV_AdminSetCallback \
21 | RASPRIV_CallerSetCallback \
22 | RASPRIV_NoCallback)
23#define RAS_MODEM_OPERATIONAL 1
24#define RAS_MODEM_NOT_RESPONDING 2
25#define RAS_MODEM_HARDWARE_FAILURE 3
26#define RAS_MODEM_INCORRECT_RESPONSE 4
27#define RAS_MODEM_UNKNOWN 5
28#define RAS_PORT_NON_OPERATIONAL 1
29#define RAS_PORT_DISCONNECTED 2
30#define RAS_PORT_CALLING_BACK 3
31#define RAS_PORT_LISTENING 4
32#define RAS_PORT_AUTHENTICATING 5
33#define RAS_PORT_AUTHENTICATED 6
34#define RAS_PORT_INITIALIZING 7
35#define MEDIA_UNKNOWN 0
36#define MEDIA_SERIAL 1
37#define MEDIA_RAS10_SERIAL 2
38#define MEDIA_X25 3
39#define MEDIA_ISDN 4
40#define USER_AUTHENTICATED 0x0001
41#define MESSENGER_PRESENT 0x0002
42#define PPP_CLIENT 0x0004
43#define GATEWAY_ACTIVE 0x0008
44#define REMOTE_LISTEN 0x0010
45#define PORT_MULTILINKED 0x0020
46#define RAS_IPADDRESSLEN 15
47#define RAS_IPXADDRESSLEN 22
48#define RAS_ATADDRESSLEN 32
49#define RASDOWNLEVEL 10
50#define RASADMIN_35 35
51#define RASADMIN_CURRENT 40
52
53typedef ULONG IPADDR;
54typedef enum _RAS_PARAMS_FORMAT {
56 ParamString = 1
58typedef union RAS_PARAMS_VALUE {
60 struct {
65typedef struct RAS_PARAMETERS {
71typedef struct _RAS_USER_0 {
75typedef struct _RAS_PORT_0 {
84 DWORD dwStartSessionTime; /* seconds from 1/1/1970 */
88typedef struct _RAS_PPP_NBFCP_RESULT {
94typedef struct _RAS_PPP_IPCP_RESULT{
98typedef struct _RAS_PPP_IPXCP_RESULT {
102typedef struct _RAS_PPP_ATCP_RESULT {
112typedef struct _RAS_PORT_1{
122typedef struct _RAS_PORT_STATISTICS {
152typedef struct _RAS_SERVER_0 {
157
174
175#ifdef __cplusplus
176}
177#endif
178
179#endif /* _RASSAPI_H */
#define APIENTRY
Definition: api.h:79
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
#define DNLEN
Definition: lmcons.h:16
#define NETBIOS_NAME_LEN
Definition: lmcons.h:47
signed char * PCHAR
Definition: retypes.h:7
unsigned int ULONG
Definition: retypes.h:1
unsigned int UINT
Definition: ndis.h:50
DWORD APIENTRY RasAdminGetErrorString(UINT, WCHAR *, DWORD)
DWORD APIENTRY RasAdminUserGetInfo(const WCHAR *, const WCHAR *, PRAS_USER_0)
DWORD APIENTRY RasAdminServerGetInfo(const WCHAR *, PRAS_SERVER_0)
struct _RAS_PORT_1 * PRAS_PORT_1
#define RASSAPI_MAX_DEVICETYPE_NAME
Definition: rassapi.h:14
DWORD APIENTRY RasAdminPortClearStatistics(const WCHAR *, const WCHAR *)
struct _RAS_PPP_NBFCP_RESULT RAS_PPP_NBFCP_RESULT
struct _RAS_PORT_STATISTICS * PRAS_PORT_STATISTICS
#define RAS_IPADDRESSLEN
Definition: rassapi.h:46
struct _RAS_PORT_STATISTICS RAS_PORT_STATISTICS
DWORD APIENTRY RasAdminGetUserAccountServer(const WCHAR *, const WCHAR *, LPWSTR)
#define RASSAPI_MAX_PORT_NAME
Definition: rassapi.h:12
struct _RAS_PORT_0 * PRAS_PORT_0
DWORD APIENTRY RasAdminPortEnum(const WCHAR *, PRAS_PORT_0 *, WORD *)
struct _RAS_PORT_1 RAS_PORT_1
BOOL APIENTRY RasAdminAcceptNewConnection(RAS_PORT_1 *, RAS_PORT_STATISTICS *, RAS_PARAMETERS *)
DWORD APIENTRY RasAdminPortDisconnect(const WCHAR *, const WCHAR *)
struct _RAS_SERVER_0 * PRAS_SERVER_0
#define RASSAPI_MAX_PARAM_KEY_SIZE
Definition: rassapi.h:15
struct _RAS_USER_0 * PRAS_USER_0
struct _RAS_PPP_PROJECTION_RESULT RAS_PPP_PROJECTION_RESULT
VOID APIENTRY RasAdminReleaseIpAddress(WCHAR *, WCHAR *, IPADDR *)
#define RASSAPI_MAX_PHONENUMBER_SIZE
Definition: rassapi.h:10
struct _RAS_PPP_IPXCP_RESULT RAS_PPP_IPXCP_RESULT
ULONG IPADDR
Definition: rassapi.h:53
VOID APIENTRY RasAdminConnectionHangupNotification(RAS_PORT_1 *, RAS_PORT_STATISTICS *, RAS_PARAMETERS *)
struct _RAS_PPP_IPCP_RESULT RAS_PPP_IPCP_RESULT
DWORD APIENTRY RasAdminSetUserParms(WCHAR *, DWORD, PRAS_USER_0)
DWORD APIENTRY RasAdminPortGetInfo(const WCHAR *, const WCHAR *, RAS_PORT_1 *, RAS_PORT_STATISTICS *, RAS_PARAMETERS **)
DWORD APIENTRY RasAdminUserSetInfo(const WCHAR *, const WCHAR *, const PRAS_USER_0)
DWORD APIENTRY RasAdminGetUserParms(WCHAR *, PRAS_USER_0)
#define RASSAPI_MAX_MEDIA_NAME
Definition: rassapi.h:11
enum _RAS_PARAMS_FORMAT RAS_PARAMS_FORMAT
#define RAS_IPXADDRESSLEN
Definition: rassapi.h:47
DWORD APIENTRY RasAdminFreeBuffer(PVOID)
struct _RAS_PORT_0 RAS_PORT_0
#define RASSAPI_MAX_DEVICE_NAME
Definition: rassapi.h:13
#define RAS_ATADDRESSLEN
Definition: rassapi.h:48
DWORD APIENTRY RasAdminGetIpAddressForUser(WCHAR *, WCHAR *, IPADDR *, BOOL *)
_RAS_PARAMS_FORMAT
Definition: rassapi.h:54
@ ParamNumber
Definition: rassapi.h:55
@ ParamString
Definition: rassapi.h:56
struct _RAS_USER_0 RAS_USER_0
struct _RAS_PPP_ATCP_RESULT RAS_PPP_ATCP_RESULT
struct _RAS_SERVER_0 RAS_SERVER_0
#define UNLEN
Definition: sspi.c:28
CHAR P_Key[RASSAPI_MAX_PARAM_KEY_SIZE]
Definition: rassapi.h:66
RAS_PARAMS_VALUE P_Value
Definition: rassapi.h:69
BYTE P_Attributes
Definition: rassapi.h:68
RAS_PARAMS_FORMAT P_Type
Definition: rassapi.h:67
DWORD reserved
Definition: rassapi.h:80
WCHAR wszUserName[UNLEN+1]
Definition: rassapi.h:82
DWORD dwStartSessionTime
Definition: rassapi.h:84
WCHAR wszLogonDomain[DNLEN+1]
Definition: rassapi.h:85
WCHAR wszDeviceName[RASSAPI_MAX_DEVICE_NAME]
Definition: rassapi.h:78
BOOL fAdvancedServer
Definition: rassapi.h:86
WCHAR wszDeviceType[RASSAPI_MAX_DEVICETYPE_NAME]
Definition: rassapi.h:77
WCHAR wszComputer[NETBIOS_NAME_LEN]
Definition: rassapi.h:83
DWORD Flags
Definition: rassapi.h:81
WCHAR wszMediaName[RASSAPI_MAX_MEDIA_NAME]
Definition: rassapi.h:79
WCHAR wszPortName[RASSAPI_MAX_PORT_NAME]
Definition: rassapi.h:76
DWORD SizeMediaParms
Definition: rassapi.h:119
DWORD LineSpeed
Definition: rassapi.h:116
WORD NumStatistics
Definition: rassapi.h:117
DWORD LineCondition
Definition: rassapi.h:114
RAS_PORT_0 rasport0
Definition: rassapi.h:113
RAS_PPP_PROJECTION_RESULT ProjResult
Definition: rassapi.h:120
DWORD HardwareCondition
Definition: rassapi.h:115
WORD NumMediaParms
Definition: rassapi.h:118
DWORD dwPortHardwareOverrunErr
Definition: rassapi.h:144
DWORD dwPortBytesRcvedCompressed
Definition: rassapi.h:150
DWORD dwPortBytesXmitedUncompressed
Definition: rassapi.h:147
DWORD dwPortFramesXmited
Definition: rassapi.h:139
DWORD dwBytesRcvedCompressed
Definition: rassapi.h:136
DWORD dwPortTimeoutErr
Definition: rassapi.h:142
DWORD dwPortFramingErr
Definition: rassapi.h:145
DWORD dwBytesXmitedUncompressed
Definition: rassapi.h:133
DWORD dwBufferOverrunErr
Definition: rassapi.h:132
DWORD dwBytesRcvedUncompressed
Definition: rassapi.h:134
DWORD dwPortBytesXmitedCompressed
Definition: rassapi.h:149
DWORD dwPortFramesRcved
Definition: rassapi.h:140
DWORD dwPortBufferOverrunErr
Definition: rassapi.h:146
DWORD dwHardwareOverrunErr
Definition: rassapi.h:130
DWORD dwPortBytesXmited
Definition: rassapi.h:137
DWORD dwPortBytesRcvedUncompressed
Definition: rassapi.h:148
DWORD dwBytesXmitedCompressed
Definition: rassapi.h:135
DWORD dwPortBytesRcved
Definition: rassapi.h:138
DWORD dwPortAlignmentErr
Definition: rassapi.h:143
WCHAR wszAddress[RAS_ATADDRESSLEN+1]
Definition: rassapi.h:104
WCHAR wszAddress[RAS_IPADDRESSLEN+1]
Definition: rassapi.h:96
WCHAR wszAddress[RAS_IPXADDRESSLEN+1]
Definition: rassapi.h:100
CHAR szName[NETBIOS_NAME_LEN+1]
Definition: rassapi.h:91
WCHAR wszWksta[NETBIOS_NAME_LEN+1]
Definition: rassapi.h:92
RAS_PPP_IPXCP_RESULT ipx
Definition: rassapi.h:109
RAS_PPP_ATCP_RESULT at
Definition: rassapi.h:110
RAS_PPP_IPCP_RESULT ip
Definition: rassapi.h:108
RAS_PPP_NBFCP_RESULT nbf
Definition: rassapi.h:107
DWORD RasVersion
Definition: rassapi.h:155
WORD TotalPorts
Definition: rassapi.h:153
WORD PortsInUse
Definition: rassapi.h:154
WCHAR szPhoneNumber[RASSAPI_MAX_PHONENUMBER_SIZE+1]
Definition: rassapi.h:73
BYTE bfPrivilege
Definition: rassapi.h:72
DWORD Length
Definition: rassapi.h:61
DWORD Number
Definition: rassapi.h:59
struct RAS_PARAMS_VALUE::@3186 String
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
char CHAR
Definition: xmlstorage.h:175
unsigned char BYTE
Definition: xxhash.c:193