Lines Matching refs:Impersonation
616 PPS_IMPERSONATION_INFORMATION Impersonation, OldData; in PsImpersonateClient() local
654 Impersonation = Thread->ImpersonationInfo; in PsImpersonateClient()
655 if (!Impersonation) in PsImpersonateClient()
658 Impersonation = ExAllocatePoolWithTag(PagedPool, in PsImpersonateClient()
659 sizeof(*Impersonation), in PsImpersonateClient()
661 if (!Impersonation) return STATUS_INSUFFICIENT_RESOURCES; in PsImpersonateClient()
666 Impersonation, in PsImpersonateClient()
671 ExFreePoolWithTag(Impersonation, TAG_PS_IMPERSONATION); in PsImpersonateClient()
672 Impersonation = OldData; in PsImpersonateClient()
765 OldToken = Impersonation->Token; in PsImpersonateClient()
774 Impersonation->ImpersonationLevel = ImpersonationLevel; in PsImpersonateClient()
775 Impersonation->CopyOnOpen = CopyOnOpen; in PsImpersonateClient()
776 Impersonation->EffectiveOnly = EffectiveOnly; in PsImpersonateClient()
777 Impersonation->Token = ImpersonationToken; in PsImpersonateClient()
940 PPS_IMPERSONATION_INFORMATION Impersonation = NULL; in PsDisableImpersonation() local
960 Impersonation = Thread->ImpersonationInfo; in PsDisableImpersonation()
961 ImpersonationState->Token = Impersonation->Token; in PsDisableImpersonation()
962 ImpersonationState->CopyOnOpen = Impersonation->CopyOnOpen; in PsDisableImpersonation()
963 ImpersonationState->EffectiveOnly = Impersonation->EffectiveOnly; in PsDisableImpersonation()
964 ImpersonationState->Level = Impersonation->ImpersonationLevel; in PsDisableImpersonation()
971 if (Impersonation) return TRUE; in PsDisableImpersonation()
991 PPS_IMPERSONATION_INFORMATION Impersonation; in PsRestoreImpersonation() local
1000 Impersonation = Thread->ImpersonationInfo; in PsRestoreImpersonation()
1006 Token = Impersonation->Token; in PsRestoreImpersonation()
1013 Impersonation->ImpersonationLevel = ImpersonationState->Level; in PsRestoreImpersonation()
1014 Impersonation->CopyOnOpen = ImpersonationState->CopyOnOpen; in PsRestoreImpersonation()
1015 Impersonation->EffectiveOnly = ImpersonationState->EffectiveOnly; in PsRestoreImpersonation()
1016 Impersonation->Token = ImpersonationState->Token; in PsRestoreImpersonation()