RAS_USER_1 structure (mprapi.h)

The RAS_USER_1 structure contains information for a particular Remote Access Service user. The RAS_USER_1 structure is similar to the RAS_USER_0 structure, except that RAS_USER_1 supports an additional member, bfPrivilege2.

Syntax

typedef struct _RAS_USER_1 {
  BYTE  bfPrivilege;
  WCHAR wszPhoneNumber[MAX_PHONE_NUMBER_LEN + 1];
  BYTE  bfPrivilege2;
} RAS_USER_1, *PRAS_USER_1;

Members

bfPrivilege

Specifies the types of remote access privilege available to the RAS user.

The following remote access privilege constants are defined in Mprapi.h.

Value Meaning
RASPRIV_DialinPrivilege
The user has permission to dial in to the RAS server.
RASPRIV_NoCallback
The RAS server will not call back the user to establish a connection.
RASPRIV_AdminSetCallback
When the user calls, the RAS server hangs up and calls a preset call-back phone number stored in the user account database. The wszPhoneNumber member of the RAS_USER_0 structure contains the user's call-back phone number.
RASPRIV_CallerSetCallback
When the user calls, the RAS server provides the option of specifying a call-back phone number. The user can also choose to connect immediately without a call back. The wszPhoneNumber member contains a default number that the user can override.
 
 

Use the following constant as a mask to isolate the call back privilege. (This constant is also defined in Mprapi.h.)

RASPRIV_CallbackType

wszPhoneNumber[MAX_PHONE_NUMBER_LEN + 1]

Pointer to a Unicode string containing the phone number at which the RAS user should be called back.

bfPrivilege2

Specifies flags that grant additional remote access privileges to the RAS user.

The following remote access privilege constants are defined in Mprapi.h.

Value Meaning
RASPRIV2_DialinPolicy
Remote access policies determine whether the user is allowed dial-in access.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header mprapi.h

See also

MprAdminUserGetInfo

MprAdminUserSetInfo

RAS Administration Structures

RAS_USER_0

Remote Access Service Administration Reference