home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / INITGUID.H < prev    next >
C/C++ Source or Header  |  1997-02-14  |  1KB  |  41 lines

  1. #pragma option -b
  2. /*****************************************************************************\
  3. *                                                                             *
  4. * initguid.h -  Definitions for controlling GUID initialization               *
  5. *                                                                             *
  6. *               OLE Version 2.0                                               *
  7. *                                                                             *
  8. *               Copyright (c) 1992-1996, Microsoft Corp. All rights reserved. *
  9. *                                                                             *
  10. \*****************************************************************************/
  11.  
  12. // Include after compobj.h to enable GUID initialization.  This
  13. //              must be done once per exe/dll.
  14. //
  15. // After this file, include one or more of the GUID definition files.
  16. //
  17. // NOTE: ole2.lib contains references to all GUIDs defined by OLE.
  18.  
  19. #ifndef DEFINE_GUID
  20. #error initguid: must include objbase.h first.
  21. #endif
  22.  
  23. #undef DEFINE_GUID
  24.  
  25. #ifdef _MAC
  26. #define __based(a)
  27. #endif
  28.  
  29. #ifdef _WIN32
  30. #define __based(a)
  31. #endif
  32.  
  33. #ifdef __TURBOC__
  34. #define __based(a)
  35. #endif
  36.  
  37. #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  38.     EXTERN_C const GUID __based(__segname("_CODE")) name \
  39.                     = { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
  40. #pragma option -b.
  41.