Imported Upstream version 9.20
[platform/upstream/7zip.git] / CPP / 7zip / IDecl.h
1 // IDecl.h\r
2 \r
3 #ifndef __IDECL_H\r
4 #define __IDECL_H\r
5 \r
6 #include "../Common/MyUnknown.h"\r
7 \r
8 #define DECL_INTERFACE_SUB(i, base, groupId, subId) \\r
9 DEFINE_GUID(IID_ ## i, \\r
10 0x23170F69, 0x40C1, 0x278A, 0, 0, 0, (groupId), 0, (subId), 0, 0); \\r
11 struct i: public base\r
12 \r
13 #define DECL_INTERFACE(i, groupId, subId) DECL_INTERFACE_SUB(i, IUnknown, groupId, subId)\r
14 \r
15 #endif\r