The RasAdminUserGetInfo function gets the RAS permissions and callback phone number information for a specified user.
DWORD RasAdminUserGetInfo(
const WCHAR *lpszUserAccountServer,
// pointer to the name of the user account
// server
const WCHAR *lpszUser, // pointer to the name of the user
PRAS_USER_0 pRasUser0 // receives the user's RAS information
);
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value can be the following error code.
Value | Meaning |
---|---|
NERR_BufTooSmall | Insufficient memory to perform this function. |
There is no extended error information for this function; do not call GetLastError.
Windows NT: Requires version 4.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rassapi.h.
Import Library: Use rassapi.lib.
Remote Access Service Overview, RAS Server Administration Functions, RAS_USER_0, RasAdminGetUserAccountServer, RasAdminUserSetInfo