IDecl.h 352 B

12345678910111213141516
  1. // IDecl.h
  2. #ifndef __IDECL_H
  3. #define __IDECL_H
  4. #include "../Common/MyUnknown.h"
  5. #define DECL_INTERFACE_SUB(i, base, groupId, subId) \
  6. DEFINE_GUID(IID_ ## i, \
  7. 0x23170F69, 0x40C1, 0x278A, 0, 0, 0, (groupId), 0, (subId), 0, 0); \
  8. struct i: public base
  9. #define DECL_INTERFACE(i, groupId, subId) DECL_INTERFACE_SUB(i, IUnknown, groupId, subId)
  10. #endif