Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

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