MprAdminUserGetInfo

[This is preliminary documentation and subject to change.]

The MprAdminUserGetInfo function retrieves all RAS information for a particular user.

DWORD MprAdminUserGetInfo(
    const WCHAR *  lpwsServerName,  // name of PDC or BDC with UAS
    const WCHAR *  lpwsUserName,    // name of user
          DWORD    dwLevel,         // must be zero
          LPBYTE   lpbBuffer        // RAS_USER_0 structure
);
 

Parameters

lpwsServerName
Pointer to a Unicode string containing the name of the server computer with the master User Accounts Subsystem. This computer will be either the primary domain controller or the backup domain controller. Use the MprAdminGetPDCServer function to obtain this name.
lpwsUserName
Pointer to a Unicode string containing the name of the user for which to get RAS information.
dwLevel
This parameter must be zero.
lpbBuffer
Pointer to a RAS_USER_0 structure. The caller must allocate (and free) the memory for this structure. Upon successful return, this structure contains the RAS data for the specified user.

Return Values

If the function succeeds, the return value will be NO_ERROR.

If the function fails the return value will be one of the following values.

Value Meaning
ERROR_ACCESS_DENIED The caller does not have sufficient privilege.
ERROR _INVALID_PARAMETER The value of dwLevel is invalid.

QuickInfo

  Windows NT: Use version 5.0 and later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in mprapi.h.
  Import Library: Link with mprapi.lib.

See Also

MprAdminGetPDCServer, MprAdminUserSetInfo, RAS_USER_0