/// <summary> /// Revoke the security context attribute. /// </summary> /// <param name="throw_on_error">True to throw on error.</param> /// <returns>The NT status code.</returns> public NtStatus Revoke(bool throw_on_error) { if (_port != null && !_port.Handle.IsClosed) { return(NtSystemCalls.NtAlpcRevokeSecurityContext(_port.Handle, AlpcRevokeSecurityContextFlags.None, handle.ToInt64())); } return(NtStatus.STATUS_SUCCESS); }