DestroyWindow() private method

private DestroyWindow ( IntPtr hwnd ) : bool
hwnd System.IntPtr
return bool
Beispiel #1
0
        public static void SafeDestroyWindow(ref IntPtr hwnd)
        {
            IntPtr p = hwnd;

            hwnd = IntPtr.Zero;
            if (NativeMethods.IsWindow(p))
            {
                NativeMethods.DestroyWindow(p);
            }
        }