Skip to content

Latest commit

 

History

History
102 lines (80 loc) · 2.72 KB

nc-ntsecpkg-lsa_close_sam_user.md

File metadata and controls

102 lines (80 loc) · 2.72 KB
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.
CloseSamUser
CloseSamUser callback function [Security]
LSA_CLOSE_SAM_USER
LSA_CLOSE_SAM_USER callback
_ssp_closesamuser
ntsecpkg/CloseSamUser
security.closesamuser
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
LSA_CLOSE_SAM_USER
ntsecpkg/LSA_CLOSE_SAM_USER
c++
APIRef
kbSyntax
UserDefined
Ntsecpkg.h
CloseSamUser

LSA_CLOSE_SAM_USER callback function

-description

The CloseSamUser function closes a handle to a Security Accounts Manager (SAM) user account.

-parameters

-param UserHandle [in]

A handle to the SAM user account previously opened using the OpenSamUser function.

-returns

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
STATUS_INVALID_HANDLE
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.

-see-also

LSA_SECPKG_FUNCTION_TABLE

OpenSamUser

SpInitialize