Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7577505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:12:08+00:00 2026-05-30T17:12:08+00:00

I want to create the same function Find windows… of spy++ in C#. I

  • 0

I want to create the same function “Find windows…” of spy++ in C#.
I have try with this function of the WINAPI:

HWND WINAPI WindowFromPoint(__in  POINT Point);

http://msdn.microsoft.com/en-US/library/ms633558.aspx
But i don’t arrive to get all element with that, because they are disabled or hidden.

For example with the window 7 calculator in Programmer mode, i cannot get the “A B C D E F”
with my program if they are disable then spy++ can get it.

Edit:
I have try this but it don’t working:

[DllImport("user32.dll")]
public static extern ulong GetClassLongPtr(IntPtr hWnd, int nIndex);

[DllImport("user32.dll")]
public static extern IntPtr ChildWindowFromPointEx(IntPtr hWndParent, Win32Point pt, uint uFlags);

IntPtr hWnd = WindowFromPoint(myPoint);
hWnd= ChildWindowFromPointEx(hWnd , myPoint, 0x0000);

myPoint is the position of my mouse.

I don’t familiar with the WINAPI and i imagine with your explanation that is a lack of understanding of me. It’s possible to have a little example of ChildWindowFromPointEx function or know what my code don’t working? thanx for your answer


I have try to create the loop but, it seems the handle is under the other handle but is not children of the handle, the loop send alway the same handle and no the desire child when the key ” a b c d e f” is disabled. Do you have another idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:12:10+00:00Added an answer on May 30, 2026 at 5:12 pm

    WindowFromPoint returns a window handle. Since you are dealing with disabled/hidden windows, you would want to use ChildWindowFromPointEx, passing in hwndParent as whatever handle you obtained from WindowFromPoint.

    You might find the following article helpful:
    http://blogs.msdn.com/b/oldnewthing/archive/2010/12/30/10110077.aspx


    In regards to the code you added, ChildWindowFromPointEx takes client coordinates, whereas the mouse position coordinates you have are screen coordinates. You can do the conversion with ScreenToClient.

    Note: This is the WinAPI way to do things. I have no idea whether or what APIs C# supplies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have four tables containing exactly the same columns, and want to create a
I want to create 2 separate pickers in the same view using the same
I would want to create a table with the same widths (table and its
I want to create a FlipPanel, which provides two different views of the same
How to select a same database? I want to create a table from already
i want create image animation , i have 50 images with png format now
I remember eclipse and idea have this template to automatically create an object's hashCode
I know there are multiple questions about this same question but I couldn't find
I have a function written in pl/pgsql which works in the same way as
I have a similar code snippet like this class Search { public function search($for,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.