Beispiel #1
0
 /// <summary>
 /// Release handle.
 /// </summary>
 /// <returns>True if handle released successfully.</returns>
 protected override bool ReleaseHandle()
 {
     if (_port == null || _port.Handle.IsClosed)
     {
         return(false);
     }
     return(NtSystemCalls.NtAlpcDeleteSecurityContext(_port.Handle,
                                                      AlpcDeleteSecurityContextFlags.None, handle.ToInt64()).IsSuccess());
 }