Sign in to follow this  

DDraw Emulation Lock Fails

This topic is 2570 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
Name: DDERR_CANTLOCKSURFACE
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.
Will
also happen on attempts to lock an optimized surface.
DCI == "Display Control Interface"

Share this post


Link to post
Share on other sites

This topic is 2570 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this