Author Topic: iid param in DirectDraw7  (Read 5210 times)

satpro

  • Member
  • **
  • Posts: 116
iid param in DirectDraw7
« 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?

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: iid param in DirectDraw7
« Reply #1 on: June 29, 2012, 01:28:30 AM »
yes, you must pass a pointer to the GUID.
AFAICS it should work.
MREAL macros - when you need floating point arithmetic while assembling!

satpro

  • Member
  • **
  • Posts: 116
Re: iid param in DirectDraw7
« Reply #2 on: June 29, 2012, 01:30:05 AM »
Thank you, q.
« Last Edit: August 10, 2012, 10:19:11 PM by satpro »