New file to instantiate GUID's ms-like.

This commit is contained in:
Juergen Schmied 1999-01-23 14:05:28 +00:00 committed by Alexandre Julliard
parent 308477b6df
commit f072fc97d7
1 changed files with 32 additions and 0 deletions

32
include/initguid.h Normal file
View File

@ -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