UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:ntsecpkg.LSA_CLOSE_SAM_USER |
LSA_CLOSE_SAM_USER (ntsecpkg.h) |
Closes a handle to a Security Accounts Manager (SAM) user account. |
|
security\closesamuser.htm |
security |
1e56e38e-ba8f-4781-80f1-e60bd33250e4 |
12/05/2018 |
CloseSamUser, CloseSamUser callback function [Security], LSA_CLOSE_SAM_USER, LSA_CLOSE_SAM_USER callback, _ssp_closesamuser, ntsecpkg/CloseSamUser, security.closesamuser |
ntsecpkg.h |
Windows |
Windows XP [desktop apps only] |
Windows Server 2003 [desktop apps only] |
Windows |
19H1 |
|
|
|
|
|
|
The CloseSamUser function closes a handle to a Security Accounts Manager (SAM) user account.
A handle to the SAM user account previously opened using the OpenSamUser function.
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. |
A pointer to the CloseSamUser function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.