Sign in to follow this  

DDraw Emulation Lock Fails

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

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