[ofw] RE: interface GUIDs and versioning

Sean Hefty sean.hefty at intel.com
Wed Jul 8 16:46:08 PDT 2009


>The problem with passing the IID into the function is it assumes that the rest
>of the parameters are correct for the different interfaces, which may not be
>the case.

good point

>The main advantage with the CreateInstance/Initialize pairs is that it lets you
>extend the interfaces without having to rev all the GUIDs all the time.  It
>comes down with how often you expect to change interfaces, and how many prior
>interface versions you intend on supporting.

Hopefully the interfaces won't change much at all.  I just wanted to have a firm
plan for handling versioning, or exposing vendor specific extensions.  For the
latter, forcing users to call QueryInterface seems appropriate.  Reving all of
the GUIDs to handle the former isn't a huge deal.

Thanks,
- Sean




More information about the ofw mailing list