At one point there is a call to IDirectDraw::GetCaps, and
the DDERR_INVALIDPARAMS error is returned. I've
zeroed out and set the dwSize member of both DDCAPS
parameters, so I'm confused as to what the problem
could be. Here's the context:
I try calling DirectDrawEnumerate to determine if the are any devices
with 3D capabilities, and the only GUID passed to my call back is the
default NULL, so I call DirectDrawCreate with a NULL as the GUID, and
that function call succeeds.
I then make an intermediate call to IDirectDraw::GetDisplayMode to get
a surface description. Immediately afterwards, I call IDirectDraw::GetCaps
on my successfully initialized pointer from DirectDrawCreate. GetCaps,
however, returns DDERR_INVALIDPARAMS.
As I said before I've zeroed out and set the dwSize member of both DDCAPS
parameters. Is the DDERR_INVALIDPARAMS error indicative of another
problem?
Help aprreciated.