Commit 5a097118 authored by Adrian Thurston's avatar Adrian Thurston Committed by Alexandre Julliard

initguid.h should only contain the macro that defines the guids.

Added olectl.h to guid.c so some needed guids get defined. Made GUID_NULL an actual guid set to 0,0,0...
parent 466cd444
......@@ -14,19 +14,10 @@
/*****************************************************************************
* Macros to declare the GUIDs
*/
#ifdef INITGUID
#undef DEFINE_GUID
#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
#ifndef __WINE_SHLGUID_H
#define __WINE_SHLGUID_H
#include "initguid.h"
#include "wine/obj_base.h"
DEFINE_SHLGUID(CLSID_ShellDesktop, 0x00021400L, 0, 0);
DEFINE_SHLGUID(CLSID_ShellLink, 0x00021401L, 0, 0);
......
......@@ -13,8 +13,6 @@
/*****************************************************************************
* Predeclare the interfaces
*/
DEFINE_GUID(CLSID_StdFont, 0x0BE35203, 0x8F91, 0x11CE, 0x9D, 0xE3, 0x00, 0xAA, 0x00, 0x4B, 0xB8, 0x51);
DEFINE_GUID(IID_IFont, 0xBEF6E002, 0xA874, 0x101A, 0x8B, 0xBA, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB);
typedef struct IFont IFont,*LPFONT;
......
......@@ -63,8 +63,8 @@ typedef GUID FMTID,*LPFMTID;
#define REFFMTID const FMTID* const
#endif // !__cplusplus
#define GUID_NULL ((GUID*)NULL) /* Is this right? */
#define CLSID_NULL ((REFCLSID)NULL)
extern const IID GUID_NULL;
#define CLSID_NULL GUID_NULL
typedef enum tagDVASPECT
{
......
......@@ -9,6 +9,7 @@
*/
#include "oleidl.h"
#include "oaidl.h"
#include "olectl.h"
#include "ocidl.h"
#include "objbase.h"
#include "servprov.h"
......@@ -21,4 +22,7 @@
#include "shlguid.h"
#include "shlobj.h"
/* FIXME: don't really know where to put this. */
DEFINE_GUID(GUID_NULL, 0,0,0,0,0,0,0,0,0,0,0);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment