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