MprAdminUserSetInfo

[This is preliminary documentation and subject to change.]

The MprAdminUserSetInfo function sets RAS information for the specified user.

DWORD MprAdminUserSetInfo(
    const WCHAR *  lpwsServerName,  // name of PDC or BDC with UAS
    const WCHAR *  lpwsUserName,    // name of user
          DWORD    dwLevel,         // must be zero
    const 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 set RAS information.
dwLevel
This parameter must be zero.
lpbBuffer
Pointer to a RAS_USER_0 structure that specifies the new RAS information for the 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, MprAdminUserGetInfo, RAS_USER_0