Home | History | Annotate | Download | only in 7zip
      1 // IDecl.h
      2 
      3 #ifndef __IDECL_H
      4 #define __IDECL_H
      5 
      6 #include "../Common/MyUnknown.h"
      7 
      8 #define DECL_INTERFACE_SUB(i, base, groupId, subId) \
      9 DEFINE_GUID(IID_ ## i, \
     10 0x23170F69, 0x40C1, 0x278A, 0, 0, 0, (groupId), 0, (subId), 0, 0); \
     11 struct i: public base
     12 
     13 #define DECL_INTERFACE(i, groupId, subId) DECL_INTERFACE_SUB(i, IUnknown, groupId, subId)
     14 
     15 #endif
     16