Jump to content
  • Advertisement
Sign in to follow this  

Alt-tab not minimizing game after initializing movie player

This topic is 3415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've found that after calling this function my game will no longer minimize when alt-tab is pressed. This is on both ATI and Nvidia cards under XP. On Vista alt-tab still works after calling the function. Note that you'll need a reasonably recent platform SDK to get this to compile. It probably won't return true or cause problems unless you have media player 10 or newer installed too. Any suggestions on how to make alt-tab work again after calling this code would be appreciated.
#include <vmr9.h>
#include <d3d9.h>
#include <atlbase.h>
#include <comutil.h>
#include <dshow.h>

bool BreakAltTab(void)
    IBaseFilter* pBF = NULL;
    HRESULT hr = CoCreateInstance(CLSID_VideoMixingRenderer9, NULL,
                          (LPVOID *)&pBF);
        return true;
        return false;

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!