Jump to content
  • Advertisement
Sign in to follow this  

DDraw Emulation Lock Fails

This topic is 2765 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

How can I get a pointer to the surface memory of the primary surface?

When DirectDraw2 is Initialized with the DDCREATE_EMULATIONONLY flag,
the primary surface won't lock. (though all the other surfaces do lock)
DDSURFACEDESC ddsd = { 0 };
ddsd.dwSize = sizeof(ddsd);
hResult = pddsPrimary->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
HRESULT: 0x887601b3
Description: Access to this surface is being refused because no driver exists
which can supply a pointer to the surface. This is most likely to happen when
attempting to lock the primary surface when no DCI provider is present.
also happen on attempts to lock an optimized surface.
DCI == "Display Control Interface"

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!