teamviewer.com link icon
or
Ask The Community

TeamViewer is one of the winners of the European Customer Centricity Award 🥳


Please find more information here.

Teamviewer stops working GetWindowText (User32.dll) Function

Anwarjutt
Anwarjutt Posts: 3 ✭✭
edited May 25 in API and scripting

I have developed a C# code which access to user32.dll and it is using GetWindowText function. The code is working properly when Teamviewer is uninstalled on Windows 7.

However if you install Teamviewer, the code can not retrieve the text of control in window with GetWindowText function. How can I solve this problem ?

Best Answer

  • packageslab
    packageslab Posts: 1 Newbie
    Accepted Answer

    Well I have resolved the issue. I was calling also dialog file class with the function FindWindowEx by the class name #32770.

    This class type is used also by Teamviewer(TV) quick support user interface. When I run my code, there is a intervention to the interface of TV and blocks of working user32 functions.

    To solve the problem I have called the FindWindow function with class name and control name so that there is no intervention to the TV and problem solved.

Answers

  • packageslab
    packageslab Posts: 1 Newbie
    Accepted Answer

    Well I have resolved the issue. I was calling also dialog file class with the function FindWindowEx by the class name #32770.

    This class type is used also by Teamviewer(TV) quick support user interface. When I run my code, there is a intervention to the interface of TV and blocks of working user32 functions.

    To solve the problem I have called the FindWindow function with class name and control name so that there is no intervention to the TV and problem solved.

  • Anwarjutt
    Anwarjutt Posts: 3 ✭✭
    edited June 1

    @packageslab Thanks Dude I was searching my answer every where.