System.Windows.Automation.NativeMethods.GetWindowHandle C# (CSharp) Method

GetWindowHandle() public static method

public static GetWindowHandle ( Gdk win ) : IntPtr
win Gdk
return System.IntPtr
		public static IntPtr GetWindowHandle (Gdk.Window win)
		{
			if (win == null)
				return IntPtr.Zero;
			try {
				if (IsWindowsSys)
					return gdk_win32_window_get_handle (win.Handle);
				else
					return gdk_x11_window_get_xid (win.Handle);
			} catch (Exception ex) {
				Log.Error ("Error calling libgdk: {0}", ex.Message);
				return IntPtr.Zero;
			}
		}