Esempio n. 1
0
        public static bool CloseHandle(IntPtr handle)
        {
            bool result = Pinvokes.CloseHandle(handle);

            if (!result)
            {
                throw new Win32Exception(Marshal.GetLastWin32Error());
            }

            return(true);
        }