SepRmCleanupRmLsaState
VOID __stdcall SepRmCleanupRmLsaState(_SEP_RM_LSA_CONNECTION_STATE *RmLsaState){
void *LsaCommandPortHandle;
void *RmCommandPortHandle;
LsaCommandPortHandle = RmLsaState->LsaCommandPortHandle;
if( LsaCommandPortHandle )
{
ZwClose((_HANDLE)LsaCommandPortHandle);
RmLsaState->LsaCommandPortHandle = 0i64;
}
RmCommandPortHandle = RmLsaState->RmCommandPortHandle;
if( RmCommandPortHandle )
{
ZwClose((_HANDLE)RmCommandPortHandle);
RmLsaState->RmCommandPortHandle = 0i64;
}
if( RmLsaState->LsaProcessHandle )
{
ZwClose((_HANDLE)RmLsaState->LsaProcessHandle);
RmLsaState->LsaProcessHandle = 0i64;
}
}Referenced by:
SepRmCommandServerThread
SepRmLsaConnectRequest