Q

SetForgroundWindow API function

SetForgroundWindow API function does not work with Microsoft Windows 2000. Is there any other suitable API that does the same task?
Actually, SetForgroundWindow works exactly as it is supposed to. What is different is that Microsoft fixed the incredibly annoying problem that used to plague NT4 and Win9x: applications stealing focus from the user is using. There are ways to fiddle around it, but Microsoft's taken an even tougher stance with Windows XP and the techniques that work on Windows 2000 will not work on Windows XP. You can still call SetForgroundWindow, but the window will flash three times in the taskbar to indicate your application needs attention.
This was first published in July 2001

Dig Deeper on Windows Operating System Management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

  • VDI assessment guide

    Wait! Don't implement VDI technology until you know your goals and needs. A VDI assessment should consider the benefits of a VDI ...

  • Guide to calculating ROI from VDI

    Calculating ROI from VDI requires a solid VDI cost analysis. Consider ROI calculation models, storage costs and more to determine...

  • Keep the cost of VDI storage under control

    Layering, persona management tools and flash arrays help keep virtual desktop users happy and VDI storage costs down.

Close