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 316393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:22:48+00:00 2026-05-12T08:22:48+00:00

Is there any API similar to FindWindow() but that searches the windows by partial

  • 0

Is there any API similar to FindWindow() but that searches the windows by partial title?
The reason is that I need to the handle to a window that has a fix part on the title but the other part changes constantly.
So for example the window title could be:

DataBase read: XYDB

or

DataBase read: WZDB

in the examples the fix part is “DataBase read:”

Code appreciated.
Thanks

  • 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-12T08:22:49+00:00Added an answer on May 12, 2026 at 8:22 am

    An example using EnumWindows:

    BOOL CALLBACK WorkerProc(HWND hwnd, LPARAM lParam) {
        static TCHAR buffer[50];
    
        GetWindowText(hwnd, buffer, 50);
        if(_tcsstr(buffer, "window name goes here")) {
            // do something with hwnd here
            return FALSE;
        }
    
        return TRUE;
    }
    

    And then call it like this:

    EnumWindows(WorkerProc, NULL);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanna close the browser window (similar to javascript:window.close()). Is there any correpsponding API
Is there any api/lib for python that will get me the synonyms of a
Is there any GUI API that can be used together with DirectX other than
Are there any APIs similar to Google Goggles that accepts a picture as input
I know that there are many similar questions posted, but none of them refers
Is there any service or api that will allow me to accept credit card
given large datasets that don't fit in memory, is there any library or api
Is there any ToDo app that have .NET api for server side adding tasks.
Just wondering if any know if there is any JavaScript API out there that
I'd like to build a website very similar to http://api.rubyonrails.org/ is there any gem

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.