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.

60 lines
1.4 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/INCLUDE/VCS/cclock.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1994 Intel Corporation.
  12. *
  13. * $Revision: 1.0 $
  14. * $Date: 31 Jan 1997 12:36:14 $
  15. * $Author: MANDREWS $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. *
  22. * Notes:
  23. *
  24. ***************************************************************************/
  25. #ifndef CCLOCK_H
  26. #define CCLOCK_H
  27. // Status codes
  28. #define CCLOCK_OK NOERROR
  29. #define CCLOCK_NO_MEMORY MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_CCLOCK,ERROR_OUTOFMEMORY)
  30. #define CCLOCK_INTERNAL_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_CCLOCK,ERROR_LOCAL_BASE_ID + 1)
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if defined(CCLOCK_EXPORT)
  35. #define CCLOCK_API __declspec (dllexport)
  36. #else // CCLOCK_IMPORT
  37. #define CCLOCK_API __declspec (dllimport)
  38. #endif
  39. #pragma pack(push,8)
  40. CCLOCK_API
  41. HRESULT CCLOCK_AcquireLock();
  42. CCLOCK_API
  43. HRESULT CCLOCK_RelinquishLock();
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #pragma pack(pop)
  48. #endif CCLOCK_H