The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: satpro on June 29, 2012, 01:17:07 AM

Title: iid param in DirectDraw7
Post by: satpro on June 29, 2012, 01:17:07 AM
I was wondering if anyone could help me understand how to pass this param in the DirectDrawCreateEx call.  I'm working with Dx7.  Since it's a GUID, it doesn't pass directly in Invoke, but I have had some luck with this:

DATA SECTION
IID_IDirectDraw7    GUID    GUID_IID_IDirectDraw7

CODE SECTION
invoke DirectDrawCreateEx, NULL, ADDR ptrIDirectDraw, ADDR IID_IDirectDraw7, NULL

Is this how to go about it?
Title: Re: iid param in DirectDraw7
Post by: qWord on June 29, 2012, 01:28:30 AM
yes, you must pass a pointer to the GUID.
AFAICS it should work.
Title: Re: iid param in DirectDraw7
Post by: satpro on June 29, 2012, 01:30:05 AM
Thank you, q.