windows-nt/Source/XPSP1/NT/com/ole32/stg/ole2flat/initguid.h
2020-09-26 16:20:57 +08:00

39 lines
1.4 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*****************************************************************************\
* *
* initguid.h - Definitions for controlling GUID initialization *
* *
* OLE Version 2.0 *
* *
* Copyright (c) 1992-1993, Microsoft Corp. All rights reserved. *
* *
\*****************************************************************************/
// Include after compobj.h to enable GUID initialization. This
// must be done once per exe/dll.
//
// After this file, include one or more of the GUID definition files.
//
// NOTE: ole2.lib contains references to all GUIDs defined by OLE.
#ifndef DEFINE_GUID
#pragma error "initguid: must include compobj.h first."
#endif
#undef DEFINE_GUID
#ifdef _MAC
#define __based(a)
#endif
#ifdef WIN32
#define __based(a)
#endif
#ifdef __TURBOC__
#define __based(a)
#endif
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
EXTERN_C const GUID CDECL __based(__segname("_CODE")) name \
= { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }