Windows2000/private/shell/ext/anyfldr/defclsf.h
2020-09-30 17:12:32 +02:00

15 lines
426 B
C

// defclsf.c
// ref count for this DLL, use this in your object Create/Release functions
extern UINT g_cRefDll;
STDAPI CreateClassFactory(HRESULT (*pfnCreate)(IUnknown *, REFIID, void **), REFIID riidInst, void **ppv);
// Helper macro for implemting OLE classes in C
#define _IOffset(class, itf) ((UINT)&(((class *)0)->itf))
#define IToClass(class, itf, pitf) ((class *)(((LPSTR)pitf)-_IOffset(class, itf)))