I am using IDirectDrawSurface3::SetSurfaceDesc to create a DD surface
with lpSurface pointing to a piece of memory. I then use
IDirectDrawSurface::Blt to blit this surface to the screen.
It works fine when using a piece of memory obtained by malloc. When
the address is instead returned by MapViewOfFile, the result is all
black. In my case, the corresponding file mapping is mapped to the
page file rather than a real file:
CreateFileMapping( INVALID_HANDLE_VALUE, ...).
Is there any way around this?
Regards,
Arno
P.S. I need the file mapping to pass it into CreateDIBSection, to
obtain multiple sections all pointing to the same memory.