#ifndef _NTSAM_H
/**
* The SamCloseHandle function closes a SAM client context, not a kernel handle. The client frees its
* wrapper during teardown even if remote close fails; do not retry with the old handle.
*
* \param SamHandle The object handle.
* \return NTSTATUS Successful or errant status.
* \sa https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/55d134df-e257-48ad-8afa-cb2ca45cd3cc
*/
NTSYSAPI
NTSTATUS
NTAPI
SamCloseHandle(
_In_ SAM_HANDLE SamHandle
);
View code on GitHubThis function is a wrapper over an RPC method documented in the [MS-SAMR] specification.