Search code examples
documentationdirectdraw

Where is the DirectDraw documentation?


I'm maintaining a legacy application, and I need to find the documentation for the IDirectDraw::SetCooperativeLevel function. (No, the Windows CE MSDN page doesn't cut it.) It's not in MSDN, it's not in the latest DirectX SDK documentation, and by looking around Microsoft removed all DirectDraw documentation (and old SDKs) from their website.

Before I go off downloading old DirectX SDK installers from random websites, does anyone know a better place to find DirectDraw documentation?


Solution

  • Not sure what information you need, but here's what I got.

    Taken from a tutorial here: http://www.gamedev.net/reference/articles/article608.asp

       /*
        * The cooperative level determines how much control we have over the
        * screen. This must at least be either DDSCL_EXCLUSIVE or DDSCL_NORMAL
        *
        * DDSCL_EXCLUSIVE allows us to change video modes, and requires
        * the DDSCL_FULLSCREEN flag, which will cause the window to take over
        * the fullscreen. This is the preferred DirectDraw mode because it allows
        * us to have control of the whole screen without regard for GDI.
        *
        * DDSCL_NORMAL is used to allow the DirectDraw app to run windowed.
        */
        ddrval = lpDD->SetCooperativeLevel( hwnd, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN );
    

    I also found that SetCooperativeLevel must be called before SetDisplayMode.

    Also this might or might not be helpful: http://www.eggheadcafe.com/software/aspnet/33936361/idirectdraw7setcooperativelevel-and-focusdevice-window.aspx

    For pure documentation I couldn't find anything better than MSDN, so old SDKs are probably your best bet if the above doesn't cut it.