void NativeMethods.ISecurityInformation.GetObjectInformation(ref NativeMethods.SI_OBJECT_INFO object_info) { System.Diagnostics.Debug.WriteLine(string.Format("GetObjectInformation: {0} {1}", ObjectInfo.Flags, currentElevation)); object_info = ObjectInfo; object_info.Flags &= ~(currentElevation); }
public SecurityInfoImpl(ObjInfoFlags flags, string objectName, string fullName, string serverName = null, string pageTitle = null) { ObjectInfo = new NativeMethods.SI_OBJECT_INFO(flags, objectName, serverName, pageTitle); currentElevation = 0; // flags & (ObjInfoFlags.OwnerElevationRequired | ObjInfoFlags.AuditElevationRequired | ObjInfoFlags.PermsElevationRequired); fullObjectName = fullName; }