"Damjan Jovanovic" damjan.jov@gmail.com writes:
+#define IMPL(class, member, pointer) ((class*) (((char*) pointer) - offsetof(class, member)))
Please don't invent yet another macro for this. Use inline functions instead.
+typedef struct +{
- IUnknown unknown;
- IUniformResourceLocatorA uniformResourceLocatorA;
- IUniformResourceLocatorW uniformResourceLocatorW;
- IPersistFile persistFile;
There's no need for an explicit IUnknown vtable.