shdocvw: rudimentary implementation of CLSID_InternetShortcut

Alexandre Julliard julliard at winehq.org
Mon Jul 28 05:11:11 CDT 2008


"Damjan Jovanovic" <damjan.jov at 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.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list