Changeset 21493 for trunk/include/win/guiddef.h
- Timestamp:
- Dec 2, 2010, 1:18:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/guiddef.h
r21360 r21493 16 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 */ 18 19 #ifndef _GUIDDEF_H_ 20 #define _GUIDDEF_H_ 18 21 19 22 #ifndef GUID_DEFINED … … 37 40 #ifdef INITGUID 38 41 #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 39 42 extern const GUID name = \ 40 43 { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } 41 44 #else … … 44 47 #endif 45 48 46 #define DEFINE_OLEGUID(name, l, w1, w2) \ 47 DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46) 48 49 #ifndef _GUIDDEF_H_ 50 #define _GUIDDEF_H_ 49 #define DEFINE_OLEGUID(name, l, w1, w2) DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46) 51 50 52 51 #ifndef __LPGUID_DEFINED__ … … 87 86 #define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2) 88 87 #define IsEqualCLSID(rclsid1, rclsid2) IsEqualGUID(rclsid1, rclsid2) 89 #if 0 88 90 89 #if defined(__cplusplus) && !defined(CINTERFACE) 91 90 #include <string.h> 92 inline booloperator==(const GUID& guidOne, const GUID& guidOther)91 inline BOOL operator==(const GUID& guidOne, const GUID& guidOther) 93 92 { 94 93 return !memcmp(&guidOne,&guidOther,sizeof(GUID)); 95 94 } 96 inline booloperator!=(const GUID& guidOne, const GUID& guidOther)95 inline BOOL operator!=(const GUID& guidOne, const GUID& guidOther) 97 96 { 98 97 return !(guidOne == guidOther); 99 98 } 100 99 #endif 101 #endif 100 102 101 extern const IID GUID_NULL; 102 103 103 #define IID_NULL GUID_NULL 104 #define CLSID_NULL GUID_NULL104 #define CLSID_NULL GUID_NULL 105 105 #define FMTID_NULL GUID_NULL 106 106
Note:
See TracChangeset
for help on using the changeset viewer.