none
how can i get rectangle window position from application virtualization client app RRS feed

  • Question

  • hello,

    at work we started application virtualization client applications. the app started, run and displayed on primary desktop. how can i get rectangle from this window. the following function (DwmGetWindowAttribute, GetWindowRect) always determine as rectangle the middel of primary monitor. for example Monitor Size width 1680 x height = 1050 the rectangle left = right = 840 and bottom = top = 525.

    The code runs perfekt by notepad or other application and delivers right coordinates. for the virtualization client app the code calculate the wrong rectangle.

    Dim SearchWindowName As String = String.Empty
    'SearchWindowName = "notepad"
    SearchWindowName = "VirtualApp"
    Dim np As Process() = Process.GetProcessesByName(SearchWindowName)
    Dim lol As Process = np(0)
    Dim lol_hand As IntPtr = lol.MainWindowHandle
    Dim info As New WINDOWINFO
    info.cbSize = Convert.ToUInt32(System.Runtime.InteropServices.Marshal.SizeOf(info))
    GetWindowInfo(lol_hand, info)
    


    can anyone help me?

    kind regard

    axel  

    Thursday, April 11, 2019 11:15 AM

Answers

All replies