#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
);
View code on GitHubThis function is a wrapper over an RPC method documented in the [MS-SAMR] specification.