Prev Next

RasAdminUserGetInfo info  Overview  Group

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.

See Also

RAS_USER_0, RasAdminGetUserAccountServer, RasAdminUserSetInfo