protected override bool ReleaseHandle()
 {
     return(base.IsClosed ? true : Win32Native.CloseHandle(base.handle));
 }
        protected override bool ReleaseHandle()
        {
            // We don't care about the value of GetLastError.
#pragma warning suppress 56523
            return(Win32Native.CloseHandle(this.handle));
        }
Exemple #3
0
 static Win32Native()
 {
     Win32Native.SYSTEM_INFO lpSystemInfo = new Win32Native.SYSTEM_INFO();
     Win32Native.GetSystemInfo(out lpSystemInfo);
     Win32Native.PAGE_SIZE = (uint)lpSystemInfo.dwPageSize;
 }