RasAdminUserGetInfo

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
);
 

Parameters

lpszUserAccountServer
Pointer to a null-terminated Unicode string that contains the name of the primary or backup domain controller that has the user account database. Use the RasAdminGetUserAccountServer function to get this server name.
lpszUser
Pointer to a null-terminated Unicode string that contains the name of the user for whom to get RAS information.
pRasUser0
Pointer to a RAS_USER_0 structure that receives the RAS data for the specified user.

Return Values

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.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in rassapi.h.
  Import Library: Use rassapi.lib.

See Also

Remote Access Service Overview, RAS Server Administration Functions, RAS_USER_0, RasAdminGetUserAccountServer, RasAdminUserSetInfo