#ifndef _NTSAM_H
/**
* Queries information about a user account.
*
* \param UserHandle A handle to the user.
* \param UserInformationClass The user information class to retrieve.
* \param Buffer Receives a pointer to the requested information structure.
* \return NTSTATUS indicating success or failure.
*/
NTSYSAPI
NTSTATUS
NTAPI
SamQueryInformationUser(
_In_ SAM_HANDLE UserHandle,
_In_ USER_INFORMATION_CLASS UserInformationClass,
_Outptr_ PVOID *Buffer
);
View code on GitHubThis function is a wrapper over an RPC method documented in the [MS-SAMR] specification.