SamSetInformationUser - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTSAM_H

/**
 * Sets information for a user account.
 *
 * \param UserHandle A handle to the user.
 * \param UserInformationClass The user information class to set.
 * \param Buffer The information structure to apply.
 * \return NTSTATUS indicating success or failure.
 */
NTSYSAPI
NTSTATUS
NTAPI
SamSetInformationUser(
    _In_ SAM_HANDLE UserHandle,
    _In_ USER_INFORMATION_CLASS UserInformationClass,
    _In_ PVOID Buffer
    );

#endif

View code on GitHub

NtDoc

This function is a wrapper over an RPC method documented in the [MS-SAMR] specification.