public void Dispose()
 {
     if (fileMapping != IntPtr.Zero)
     {
         if (NTKernel.CloseHandle((uint)fileMapping))
         {
             fileMapping = IntPtr.Zero;
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Don't forget to dispose this object before destruction.
 /// </summary>
 public void Dispose()
 {
     if (handle != 0)
     {
         if (NTKernel.CloseHandle(handle))
         {
             handle = 0;
         }
     }
 }