RASCREDENTIALS

[New - Windows NT]

The RASCREDENTIALS structure is used with the RasGetCredentials and RasSetCredentials functions to specify the user credentials associated with a RAS phone-book entry.

typedef struct {

DWORD dwSize;

DWORD dwMask;

TCHAR szUserName[UNLEN + 1];

TCHAR szPassword[PWLEN + 1];

TCHAR szDomain[DNLEN + 1];

} RASCREDENTIALS, *LPRASCREDENTIALS;

Members

dwSize

Specifies the size, in bytes, of the RASCREDENTIALS structure.

dwMask

A set of bit flags that specify the members of this structure that are valid. On input, set the flags to indicate the members in which you are interested. On output, the function sets the flags to indicate the members that contain valid data. This member can be a combination of the following values.

Value Meaning
RASCM_UserName The szUserName member is valid.
RASCM_Password The szPassword member is valid.
RASCM_Domain The szDomain member is valid.

szUserName

A null-terminated string that contains a user name.

szPassword

A null-terminated string that contains a password.

szDomain

A null-terminated string that contains a domain name.

See Also

RasGetCredentials, RasSetCredentials