link icon
Ask The Community

Teamviewer Stopped working on Windows

davinkob Posts: 3 ✭✭
edited May 17 in General Questions

I facing an issue with Windows operating system I developed a C# code and it was using the GetWindowText function. However, the code is working fine when I uninstall the TeamViewer software on Windows 10 but again when I install the error occurs

 [DllImport("user32.dll", CharSet = CharSet.Auto)]

   static extern IntPtr FindWindowExW(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, 

   string lpszWindow);

   [DllImport("user32.dll", CharSet = CharSet.Auto)]

   static extern IntPtr GetWindowText(IntPtr hwndParent, StringBuilder Wintxt, int txtsize);

   public void CloseWin(string param)




     IntPtr hwnD = FindWindowExW(IntPtr.Zero, IntPtr.Zero, "CabinetWClass", null);

     IntPtr hwnD2 = FindWindowExW(hwDvar, IntPtr.Zero, "WorkerW", null);

     IntPtr hwnD3 = FindWindowExW(hwnD2, IntPtr.Zero, "ReBarWindow32", null);

     IntPtr hwnD4 = FindWindowExW(hwnD3, IntPtr.Zero, "Address Band Root", null);

     IntPtr hwnD5 = FindWindowExW(hwnD4, IntPtr.Zero, "msctls_progress32", null);

     IntPtr hwnD6 = FindWindowExW(hwnD5, IntPtr.Zero, "Breadcrumb Parent", null);

     IntPtr hwnD7 = FindWindowExW(hwnD6, IntPtr.Zero, "ToolbarWindow32", null);

     StringBuilder sb = new StringBuilder(255);

     GetWindowText(hwnD7, sb, 255);

Please help me.


  • davinkob
    davinkob Posts: 3 ✭✭

    Someone, please Solve the problem.

  • davinkob
    davinkob Posts: 3 ✭✭

    I have lost some personal data on my website please help.

Sign In or Register to comment.