LSA_CLOSE_SAM_USER callback function (ntsecpkg.h)
The CloseSamUser function closes a handle to a Security Accounts Manager (SAM) user account.
Syntax
LSA_CLOSE_SAM_USER LsaCloseSamUser;
NTSTATUS LsaCloseSamUser(
[in] PVOID UserHandle
)
{...}
Parameters
[in] UserHandle
A handle to the SAM user account previously opened using the OpenSamUser function.
Return value
If the function succeeds, the return value is STATUS_SUCCESS.
If the function fails, the return value is an NTSTATUS code indicating the reason. The following table lists a common reason for failure and the error code that the function returns.
Return code | Description |
---|---|
|
The value specified for UserHandle is not valid or NULL. |
Remarks
A pointer to the CloseSamUser function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | ntsecpkg.h |