ReactOS  0.4.15-dev-499-g1f31905
rassapi.h
Go to the documentation of this file.
1 #ifndef _RASSAPI_H
2 #define _RASSAPI_H
3 
4 #ifdef __cplusplus
5 extern "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 
53 typedef ULONG IPADDR;
54 typedef enum _RAS_PARAMS_FORMAT {
58 typedef union RAS_PARAMS_VALUE {
60  struct {
63  } String;
65 typedef struct RAS_PARAMETERS {
71 typedef struct _RAS_USER_0 {
75 typedef struct _RAS_PORT_0 {
84  DWORD dwStartSessionTime; /* seconds from 1/1/1970 */
88 typedef struct _RAS_PPP_NBFCP_RESULT {
94 typedef struct _RAS_PPP_IPCP_RESULT{
98 typedef struct _RAS_PPP_IPXCP_RESULT {
102 typedef struct _RAS_PPP_ATCP_RESULT {
112 typedef struct _RAS_PORT_1{
122 typedef struct _RAS_PORT_STATISTICS {
152 typedef struct _RAS_SERVER_0 {
157 
161 DWORD APIENTRY RasAdminUserSetInfo( const WCHAR*, const WCHAR*, const PRAS_USER_0 );
174 
175 #ifdef __cplusplus
176 }
177 #endif
178 
179 #endif /* _RASSAPI_H */
struct _RAS_PPP_IPCP_RESULT RAS_PPP_IPCP_RESULT
signed char * PCHAR
Definition: retypes.h:7
_RAS_PARAMS_FORMAT
Definition: rassapi.h:54
DWORD APIENTRY RasAdminPortDisconnect(const WCHAR *, const WCHAR *)
struct _RAS_PPP_PROJECTION_RESULT RAS_PPP_PROJECTION_RESULT
WCHAR wszDeviceName[RASSAPI_MAX_DEVICE_NAME]
Definition: rassapi.h:78
CHAR P_Key[RASSAPI_MAX_PARAM_KEY_SIZE]
Definition: rassapi.h:66
BYTE bfPrivilege
Definition: rassapi.h:72
#define RASSAPI_MAX_DEVICETYPE_NAME
Definition: rassapi.h:14
#define RAS_ATADDRESSLEN
Definition: rassapi.h:48
DWORD dwBytesXmitedCompressed
Definition: rassapi.h:135
VOID APIENTRY RasAdminConnectionHangupNotification(RAS_PORT_1 *, RAS_PORT_STATISTICS *, RAS_PARAMETERS *)
WCHAR wszMediaName[RASSAPI_MAX_MEDIA_NAME]
Definition: rassapi.h:79
DWORD HardwareCondition
Definition: rassapi.h:115
DWORD Length
Definition: rassapi.h:61
enum _RAS_PARAMS_FORMAT RAS_PARAMS_FORMAT
DWORD dwPortFramingErr
Definition: rassapi.h:145
char CHAR
Definition: xmlstorage.h:175
BOOL APIENTRY RasAdminAcceptNewConnection(RAS_PORT_1 *, RAS_PORT_STATISTICS *, RAS_PARAMETERS *)
CHAR szName[NETBIOS_NAME_LEN+1]
Definition: rassapi.h:91
DWORD dwPortBufferOverrunErr
Definition: rassapi.h:146
DWORD APIENTRY RasAdminGetUserParms(WCHAR *, PRAS_USER_0)
DWORD APIENTRY RasAdminUserGetInfo(const WCHAR *, const WCHAR *, PRAS_USER_0)
DWORD dwBytesRcvedUncompressed
Definition: rassapi.h:134
WORD PortsInUse
Definition: rassapi.h:154
struct _RAS_PORT_1 RAS_PORT_1
DWORD dwStartSessionTime
Definition: rassapi.h:84
#define RASSAPI_MAX_PARAM_KEY_SIZE
Definition: rassapi.h:15
ULONG IPADDR
Definition: rassapi.h:53
BOOL fAdvancedServer
Definition: rassapi.h:86
DWORD SizeMediaParms
Definition: rassapi.h:119
DWORD dwBytesRcvedCompressed
Definition: rassapi.h:136
RAS_PPP_IPXCP_RESULT ipx
Definition: rassapi.h:109
WCHAR wszLogonDomain[DNLEN+1]
Definition: rassapi.h:85
RAS_PORT_0 rasport0
Definition: rassapi.h:113
WCHAR wszWksta[NETBIOS_NAME_LEN+1]
Definition: rassapi.h:92
DWORD dwPortFramesRcved
Definition: rassapi.h:140
DWORD APIENTRY RasAdminFreeBuffer(PVOID)
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _RAS_PORT_0 * PRAS_PORT_0
WORD NumMediaParms
Definition: rassapi.h:118
DWORD APIENTRY RasAdminGetUserAccountServer(const WCHAR *, const WCHAR *, LPWSTR)
WCHAR wszAddress[RAS_IPXADDRESSLEN+1]
Definition: rassapi.h:100
struct RAS_PARAMETERS RAS_PARAMETERS
DWORD dwPortBytesRcved
Definition: rassapi.h:138
DWORD dwPortFramesXmited
Definition: rassapi.h:139
DWORD dwBytesXmitedUncompressed
Definition: rassapi.h:133
DWORD dwPortTimeoutErr
Definition: rassapi.h:142
struct _RAS_PPP_IPXCP_RESULT RAS_PPP_IPXCP_RESULT
RAS_PPP_IPCP_RESULT ip
Definition: rassapi.h:108
struct _RAS_PORT_STATISTICS * PRAS_PORT_STATISTICS
#define RASSAPI_MAX_MEDIA_NAME
Definition: rassapi.h:11
DWORD dwPortBytesRcvedCompressed
Definition: rassapi.h:150
struct _RAS_SERVER_0 RAS_SERVER_0
RAS_PPP_PROJECTION_RESULT ProjResult
Definition: rassapi.h:120
DWORD dwPortBytesXmitedCompressed
Definition: rassapi.h:149
WCHAR wszDeviceType[RASSAPI_MAX_DEVICETYPE_NAME]
Definition: rassapi.h:77
DWORD dwPortBytesXmited
Definition: rassapi.h:137
__wchar_t WCHAR
Definition: xmlstorage.h:180
DWORD Flags
Definition: rassapi.h:81
WCHAR wszComputer[NETBIOS_NAME_LEN]
Definition: rassapi.h:83
WORD TotalPorts
Definition: rassapi.h:153
unsigned short WORD
Definition: ntddk_ex.h:93
struct _RAS_USER_0 RAS_USER_0
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID APIENTRY RasAdminReleaseIpAddress(WCHAR *, WCHAR *, IPADDR *)
WCHAR wszAddress[RAS_IPADDRESSLEN+1]
Definition: rassapi.h:96
DWORD APIENTRY RasAdminGetErrorString(UINT, WCHAR *, DWORD)
struct _RAS_PORT_STATISTICS RAS_PORT_STATISTICS
DWORD APIENTRY RasAdminPortEnum(const WCHAR *, PRAS_PORT_0 *, WORD *)
DWORD RasVersion
Definition: rassapi.h:155
WCHAR wszAddress[RAS_ATADDRESSLEN+1]
Definition: rassapi.h:104
DWORD APIENTRY RasAdminUserSetInfo(const WCHAR *, const WCHAR *, const PRAS_USER_0)
DWORD dwPortAlignmentErr
Definition: rassapi.h:143
DWORD APIENTRY RasAdminPortGetInfo(const WCHAR *, const WCHAR *, RAS_PORT_1 *, RAS_PORT_STATISTICS *, RAS_PARAMETERS **)
struct _RAS_PORT_0 RAS_PORT_0
unsigned char BYTE
Definition: xxhash.c:193
RAS_PPP_ATCP_RESULT at
Definition: rassapi.h:110
union RAS_PARAMS_VALUE RAS_PARAMS_VALUE
DWORD dwBufferOverrunErr
Definition: rassapi.h:132
DWORD dwPortBytesXmitedUncompressed
Definition: rassapi.h:147
struct _RAS_USER_0 * PRAS_USER_0
#define RASSAPI_MAX_DEVICE_NAME
Definition: rassapi.h:13
RAS_PARAMS_FORMAT P_Type
Definition: rassapi.h:67
DWORD APIENTRY RasAdminGetIpAddressForUser(WCHAR *, WCHAR *, IPADDR *, BOOL *)
struct _RAS_PPP_NBFCP_RESULT RAS_PPP_NBFCP_RESULT
DWORD LineCondition
Definition: rassapi.h:114
WCHAR wszUserName[UNLEN+1]
Definition: rassapi.h:82
#define UNLEN
Definition: sspi.c:28
#define NETBIOS_NAME_LEN
Definition: lmcons.h:47
DWORD dwHardwareOverrunErr
Definition: rassapi.h:130
unsigned int UINT
Definition: ndis.h:50
RAS_PARAMS_VALUE P_Value
Definition: rassapi.h:69
WORD NumStatistics
Definition: rassapi.h:117
#define RAS_IPADDRESSLEN
Definition: rassapi.h:46
#define RASSAPI_MAX_PORT_NAME
Definition: rassapi.h:12
DWORD Number
Definition: rassapi.h:59
RAS_PPP_NBFCP_RESULT nbf
Definition: rassapi.h:107
DWORD LineSpeed
Definition: rassapi.h:116
DWORD dwPortBytesRcvedUncompressed
Definition: rassapi.h:148
#define DNLEN
Definition: lmcons.h:16
struct _RAS_SERVER_0 * PRAS_SERVER_0
BYTE P_Attributes
Definition: rassapi.h:68
DWORD APIENTRY RasAdminServerGetInfo(const WCHAR *, PRAS_SERVER_0)
struct RAS_PARAMS_VALUE::@3123 String
WCHAR szPhoneNumber[RASSAPI_MAX_PHONENUMBER_SIZE+1]
Definition: rassapi.h:73
unsigned int ULONG
Definition: retypes.h:1
DWORD reserved
Definition: rassapi.h:80
DWORD APIENTRY RasAdminSetUserParms(WCHAR *, DWORD, PRAS_USER_0)
#define RASSAPI_MAX_PHONENUMBER_SIZE
Definition: rassapi.h:10
WCHAR * LPWSTR
Definition: xmlstorage.h:184
struct _RAS_PORT_1 * PRAS_PORT_1
DWORD dwPortHardwareOverrunErr
Definition: rassapi.h:144
struct _RAS_PPP_ATCP_RESULT RAS_PPP_ATCP_RESULT
#define RAS_IPXADDRESSLEN
Definition: rassapi.h:47
#define APIENTRY
Definition: api.h:79
WCHAR wszPortName[RASSAPI_MAX_PORT_NAME]
Definition: rassapi.h:76
DWORD APIENTRY RasAdminPortClearStatistics(const WCHAR *, const WCHAR *)