From f072fc97d7ef2a7220fa1be639a89949732e7bd5 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Sat, 23 Jan 1999 14:05:28 +0000 Subject: [PATCH] New file to instantiate GUID's ms-like. --- include/initguid.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/initguid.h diff --git a/include/initguid.h b/include/initguid.h new file mode 100644 index 00000000000..aa6c2296bcc --- /dev/null +++ b/include/initguid.h @@ -0,0 +1,32 @@ +/* + * defines a minimum set of macros create GUID's to keep the size + * small + * + * this file should be included into "only GUID definition *.h" like + * shlguid.h + */ + +#ifndef __INIT_GUID_H +#define __INIT_GUID_H + +#include "wtypes.h" + +/***************************************************************************** + * Macros to declare the GUIDs + */ +#ifdef INITGUID +#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + const GUID name = \ + { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } +#else +#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + extern const GUID name +#endif + +#define DEFINE_OLEGUID(name, l, w1, w2) \ + DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46) + +#define DEFINE_SHLGUID(name, l, w1, w2) DEFINE_OLEGUID(name,l,w1,w2) + + +#endif