Platform SDK: RAS/Routing and RAS

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.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Header: Declared in Rassapi.h.
  Library: Use Rassapi.lib.

See Also

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