GetNextWindow oddity

Posted on 2002-05-26
Last Modified: 2013-12-03
this is going to seem like an odd request, but I am stumped...  I need to know what dll file GetNextWindow is _really_ in.  According to MSDN, it's inside of User32.lib, so I should be able to load user32.dll and snag it out of there, but after further investigation, GetNextWindow is _NOT_ in User32.dll.  I searched kernel as well, and i couldn't find in there either.  I am feeling rather silly from this, but I need to know the .dll file it's located in.  I am running XP, but I would like it to work from Win95 thru XP...

Question by:BudVVeezer
  • 2
LVL 22

Expert Comment

ID: 7036234
Here are hits from a 2000 box:

LVL 22

Accepted Solution

cookre earned 100 total points
ID: 7036286
Note that in winuser.h, GetNextWindow is #defined as GetWindow:

#define GetNextWindow(hWnd, wCmd) GetWindow(hWnd, wCmd)

All those dlls in the previous post are variations on the MFC40.DLL family.
LVL 32

Expert Comment

ID: 7036851
As cookre noted, GetNextWindow() is a pseudonym for GetWindow().

Note that GetWindow() is exported by USER32.DLL.

The DLLs that cookre noted are NOT likely to be installed on any system that does not have Visual Studio installed.  In other words, they are not standard Windows DLLs.  If you need GetNextWindow(), load USER32.DLL and call GetProcAddress() for GetWindow().

Author Comment

ID: 7037563
Good call!  That slipped by me while looking thru the header!  :: smacks forehead :: thanks!  :-)


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now