RAS_USER_0 structure (mprapi.h)

The RAS_USER_0 structure contains information for a particular Remote Access Service user.

Syntax

typedef struct _RAS_USER_0 {
  BYTE  bfPrivilege;
  WCHAR wszPhoneNumber[MAX_PHONE_NUMBER_LEN + 1];
} RAS_USER_0, *PRAS_USER_0;

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.

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_1

Remote Access Service Administration Reference