• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Windows.App
    • AppQuery
  • Dapplo.Windows.Citrix
    • WinFrame
  • Dapplo.Windows.Citrix.Enums
    • ConnectStates
    • EventMask
    • InfoClasses
  • Dapplo.Windows.Citrix.Structs
    • ClientAddress
    • ClientDisplay
  • Dapplo.Windows.Clipboard
    • ClipboardMonitor
    • ClipboardNative
    • ClipboardUpdateInformation
    • StandardClipboardFormats
  • Dapplo.Windows.Com
    • ComProgIdAttribute
    • ComWrapper
    • DisposableCom
    • IDispatch
    • IDisposableCom<T>
    • IOleCommandTarget
    • IOleWindow
    • IUnknown
  • Dapplo.Windows.Common
    • Win32
    • WindowsVersion
  • Dapplo.Windows.Common.Enums
    • AdjacentTo
    • HResult
    • Win32Error
  • Dapplo.Windows.Common.Extensions
    • HResultExtensions
    • RectExensions
  • Dapplo.Windows.Common.Structs
    • POINT
    • RECT
    • RECTF
    • SIZE
  • Dapplo.Windows.Desktop
    • EnvironmentChangedEventArgs
    • EnvironmentMonitor
    • IInteropWindow
    • InteropWindow
    • InteropWindowExtensions
    • InteropWindowFactory
    • InteropWindowQuery
    • WindowScroller
    • WindowsEnumerator
    • WinEventHook
  • Dapplo.Windows.DesktopWindowsManager
    • Dwm
    • DwmBlurBehind
    • DwmBlurBehindFlags
    • DwmSetIconicLivePreviewFlags
    • DwmThumbnailProperties
    • DwmThumbnailPropertyFlags
    • DwmWindowAttributes
  • Dapplo.Windows.Dpi
    • BitmapScaleHandler
    • BitmapScaleHandler<TKey>
    • DpiAwareness
    • DpiAwarenessContext
    • DpiHandler
    • WinProcListener
  • Dapplo.Windows.Dpi.Enums
    • MonitorDpiType
  • Dapplo.Windows.Dpi.Forms
    • DpiAwareForm
    • FormsExtensions
  • Dapplo.Windows.Dpi.Wpf
    • WindowExtensions
  • Dapplo.Windows.Enums
    • InteropWindowCacheFlags
    • WinEventHookFlags
    • WinEvents
  • Dapplo.Windows.Gdi32
    • Gdi32Api
    • GdiExtensions
    • GdiPlusApi
  • Dapplo.Windows.Gdi32.Enums
    • BitmapCompressionMethods
    • ColorSpaceEnum
    • DeviceCaps
    • GdiPlusStatus
    • GpUnit
    • RasterOperations
  • Dapplo.Windows.Gdi32.SafeHandles
    • SafeCompatibleDcHandle
    • SafeDcHandle
    • SafeDeviceContextHandle
    • SafeDibSectionHandle
    • SafeHBitmapHandle
    • SafeObjectHandle
    • SafeRegionHandle
    • SafeSelectObjectHandle
    • SafeWindowDcHandle
  • Dapplo.Windows.Gdi32.Structs
    • BitfieldColorMask
    • BitmapFileHeader
    • BitmapInfoHeader
    • BlurParams
    • CieXyz
    • CieXyzTripple
  • Dapplo.Windows.Input
    • Hotkey
    • InputGenerator
    • KeyboardHook
    • KeyboardHookEventArgs
    • MouseHook
    • MouseHookEventArgs
  • Dapplo.Windows.Input.Enums
    • ExtendedKeyFlags
    • ExtendedMouseFlags
    • HookTypes
    • InputTypes
    • KeyEventFlags
    • MouseEventFlags
    • ScanCodes
    • VirtualKeyCodes
  • Dapplo.Windows.Input.Structs
    • HardwareInput
    • Input
    • InputUnion
    • KeyboardInput
    • KeyboardLowLevelHookStruct
    • MouseInput
    • MouseLowLevelHookStruct
  • Dapplo.Windows.Interop
    • DisposableCom
    • IDisposableCom<T>
  • Dapplo.Windows.Kernel32
    • Kernel32Api
    • PsApi
  • Dapplo.Windows.Kernel32.Enums
    • GlobalMemorySettings
    • ProcessAccessRights
    • ThreadAccess
    • WindowsProducts
    • WindowsProductTypes
    • WindowsSuites
  • Dapplo.Windows.Kernel32.Structs
    • OsVersionInfoEx
  • Dapplo.Windows.Messages
    • WindowsMessage
    • WindowsMessages
    • WinProcHandler
  • Dapplo.Windows.Multimedia
    • SoundSettings
    • SystemSounds
    • WinMm
  • Dapplo.Windows.Native
    • Shell32
    • Shell32.FolderType
    • Shell32.IconSize
  • Dapplo.Windows.Shell32
    • Shell32Api
  • Dapplo.Windows.Shell32.Enums
    • AppBarEdges
    • AppBarMessages
    • AppBarStates
  • Dapplo.Windows.Shell32.Structs
    • AppBarData
  • Dapplo.Windows.Structs
    • WinEventInfo
  • Dapplo.Windows.User32
    • User32Api
    • User32Api.EnumWindowsProc
  • Dapplo.Windows.User32.Enums
    • ClassLongIndex
    • CursorInfoFlags
    • DesktopAccessRight
    • ExtendedWindowStyleFlags
    • GetWindowCommands
    • MonitorFrom
    • MonitorInfoFlags
    • ObjectIdentifiers
    • ObjectStates
    • PrintWindowFlags
    • RegionResults
    • ScrollBarCommands
    • ScrollBarStateIndexes
    • ScrollBarTypes
    • ScrollInfoMask
    • ScrollModes
    • SendMessageTimeoutFlags
    • ShowWindowCommands
    • SysCommands
    • SystemMetric
    • SystemParametersInfoActions
    • SystemParametersInfoBehaviors
    • TitleBarInfoIndexes
    • WindowLongIndex
    • WindowPlacementFlags
    • WindowPos
    • WindowStyleFlags
  • Dapplo.Windows.User32.SafeHandles
    • SafeCurrentInputDesktopHandle
    • SafeIconHandle
  • Dapplo.Windows.User32.Structs
    • AnimationInfo
    • CursorInfo
    • DisplayInfo
    • IconInfo
    • MonitorInfoEx
    • ScrollBarInfo
    • ScrollInfo
    • TitleBarInfoEx
    • WindowInfo
    • WindowPlacement

Class InteropWindow

Information about a native window Note: This is a dumb container, and doesn't retrieve anything about the window itself

Inheritance
System.Object
InteropWindow
Namespace: Dapplo.Windows.Desktop
Assembly: Dapplo.Windows.dll
Syntax
public class InteropWindow : IEquatable<IInteropWindow>, IInteropWindow

Properties

| Improve this Doc View Source

CanScroll

Specifies if a WindowScroller can work with this window

Declaration
public bool ? CanScroll { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
Implements
IInteropWindow.CanScroll
| Improve this Doc View Source

Caption

Return the title of the window, if any

Declaration
public string Caption { get; set; }
Property Value
Type Description
System.String
Implements
IInteropWindow.Caption
| Improve this Doc View Source

Children

Returns the children of this window

Declaration
public IEnumerable<IInteropWindow> Children { get; set; }
Property Value
Type Description
IEnumerable<IInteropWindow>
Implements
IInteropWindow.Children
| Improve this Doc View Source

Classname

string with the name of the internal class for the window

Declaration
public string Classname { get; set; }
Property Value
Type Description
System.String
Implements
IInteropWindow.Classname
| Improve this Doc View Source

Handle

Handle (ID) of the window

Declaration
public IntPtr Handle { get; }
Property Value
Type Description
IntPtr
Implements
IInteropWindow.Handle
| Improve this Doc View Source

HasChildren

Test if there are any children

Declaration
public bool HasChildren { get; }
Property Value
Type Description
System.Boolean
Implements
IInteropWindow.HasChildren
| Improve this Doc View Source

HasClassname

Does the window have a classname?

Declaration
public bool HasClassname { get; }
Property Value
Type Description
System.Boolean
Implements
IInteropWindow.HasClassname
| Improve this Doc View Source

HasParent

Does this window have parent?

Declaration
public bool HasParent { get; }
Property Value
Type Description
System.Boolean
Implements
IInteropWindow.HasParent
| Improve this Doc View Source

Info

WindowInfo for the Window

Declaration
public WindowInfo? Info { get; set; }
Property Value
Type Description
System.Nullable<WindowInfo>
Implements
IInteropWindow.Info
| Improve this Doc View Source

IsMaximized

Returns true if the window is maximized

Declaration
public bool ? IsMaximized { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
Implements
IInteropWindow.IsMaximized
| Improve this Doc View Source

IsMinimized

Returns true if the window is minimized

Declaration
public bool ? IsMinimized { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
Implements
IInteropWindow.IsMinimized
| Improve this Doc View Source

IsVisible

Returns true if the window is visible

Declaration
public bool ? IsVisible { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
Implements
IInteropWindow.IsVisible
| Improve this Doc View Source

Parent

The handle for the parent to which this window belongs

Declaration
public IntPtr? Parent { get; set; }
Property Value
Type Description
System.Nullable<IntPtr>
Implements
IInteropWindow.Parent
| Improve this Doc View Source

ParentWindow

The actualy IInteropWindow for the parent. This is filled when this window was retrieved via parent.GetChildren or parent.GetZOrderChildrend

Declaration
public IInteropWindow ParentWindow { get; set; }
Property Value
Type Description
IInteropWindow
Implements
IInteropWindow.ParentWindow
| Improve this Doc View Source

Placement

WindowPlacement for the Window

Declaration
public WindowPlacement? Placement { get; set; }
Property Value
Type Description
System.Nullable<WindowPlacement>
Implements
IInteropWindow.Placement
| Improve this Doc View Source

ProcessId

Get the process ID this window belongs to

Declaration
public int ? ProcessId { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
Implements
IInteropWindow.ProcessId
| Improve this Doc View Source

Text

Return the text (not title) of the window, if any

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String
Implements
IInteropWindow.Text

Methods

| Improve this Doc View Source

Dump(InteropWindowCacheFlags, StringBuilder, String)

Dump the information in the InteropWindow for debugging

Declaration
public StringBuilder Dump(InteropWindowCacheFlags cacheFlags = null, StringBuilder dump = null, string indentation = "")
Parameters
Type Name Description
InteropWindowCacheFlags cacheFlags

InteropWindowCacheFlags to specify what to dump

StringBuilder dump

StringBuilder to dump to

System.String indentation

int

Returns
Type Description
StringBuilder

StringBuilder

Implements
IInteropWindow.Dump(InteropWindowCacheFlags, StringBuilder, String)
| Improve this Doc View Source

Equals(IInteropWindow)

Declaration
public bool Equals(IInteropWindow other)
Parameters
Type Name Description
IInteropWindow other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Operators

| Improve this Doc View Source

Equality(InteropWindow, InteropWindow)

Declaration
public static bool operator ==(InteropWindow left, InteropWindow right)
Parameters
Type Name Description
InteropWindow left
InteropWindow right
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Implicit(InteropWindow to IntPtr)

Declaration
public static implicit operator IntPtr(InteropWindow interopWindow)
Parameters
Type Name Description
InteropWindow interopWindow
Returns
Type Description
IntPtr
| Improve this Doc View Source

Implicit(IntPtr to InteropWindow)

Declaration
public static implicit operator InteropWindow(IntPtr handle)
Parameters
Type Name Description
IntPtr handle
Returns
Type Description
InteropWindow
| Improve this Doc View Source

Inequality(InteropWindow, InteropWindow)

Declaration
public static bool operator !=(InteropWindow left, InteropWindow right)
Parameters
Type Name Description
InteropWindow left
InteropWindow right
Returns
Type Description
System.Boolean

Extension Methods

AppQuery.IsApp(IInteropWindow)
AppQuery.IsAppLauncher(IInteropWindow)
AppQuery.IsGutter(IInteropWindow)
AppQuery.IsMetroApp(IInteropWindow)
AppQuery.IsWin10App(IInteropWindow)
AppQuery.IsWin8App(IInteropWindow)
InteropWindowQuery.GetLinkedWindows(IInteropWindow)
InteropWindowQuery.IsTopLevel(IInteropWindow, Boolean)
InteropWindowExtensions.Exists(IInteropWindow)
InteropWindowExtensions.Fill(IInteropWindow, InteropWindowCacheFlags)
InteropWindowExtensions.GetCaption(IInteropWindow, Boolean)
InteropWindowExtensions.GetChildren(IInteropWindow, Boolean)
InteropWindowExtensions.GetClassname(IInteropWindow, Boolean)
InteropWindowExtensions.GetInfo(IInteropWindow, Boolean)
InteropWindowExtensions.GetParent(IInteropWindow, Boolean)
InteropWindowExtensions.GetParentWindow(IInteropWindow, Boolean)
InteropWindowExtensions.GetPlacement(IInteropWindow, Boolean)
InteropWindowExtensions.GetProcessId(IInteropWindow, Boolean)
InteropWindowExtensions.GetRegion(IInteropWindow)
InteropWindowExtensions.GetText(IInteropWindow, Boolean)
InteropWindowExtensions.GetWindowScroller(IInteropWindow, ScrollBarTypes, Boolean)
InteropWindowExtensions.GetZOrderedChildren(IInteropWindow, Boolean)
InteropWindowExtensions.IsDockedToLeftOf(IInteropWindow, IInteropWindow, Func<IInteropWindow, RECT>)
InteropWindowExtensions.IsDockedToRightOf(IInteropWindow, IInteropWindow, Func<IInteropWindow, RECT>)
InteropWindowExtensions.IsMaximized(IInteropWindow, Boolean)
InteropWindowExtensions.IsMinimized(IInteropWindow, Boolean)
InteropWindowExtensions.IsVisible(IInteropWindow, Boolean)
InteropWindowExtensions.Maximized(IInteropWindow)
InteropWindowExtensions.Minimize(IInteropWindow)
InteropWindowExtensions.Restore(IInteropWindow)
InteropWindowExtensions.SetExtendedStyle(IInteropWindow, ExtendedWindowStyleFlags)
InteropWindowExtensions.SetPlacement(IInteropWindow, WindowPlacement)
InteropWindowExtensions.SetStyle(IInteropWindow, WindowStyleFlags)
InteropWindowExtensions.ToForegroundAsync(IInteropWindow, Boolean)
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo