internal static bool HasEtwPermissions() { PermissionSet permissionSets = new PermissionSet(PermissionState.Unrestricted); return(PartialTrustHelpers.CheckAppDomainPermissions(permissionSets)); }