2 references to SafeNativeMethods
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedImpersonationContext.cs (2)
38bool isSuccess = SafeNativeMethods.OpenCurrentThreadTokenCritical(TokenAccessLevels.Query | TokenAccessLevels.Impersonate, 50if (error != SafeNativeMethods.ERROR_NO_TOKEN)