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.

34 lines
1.8 KiB

  1. // --------------------------------------------------------------------------------
  2. // Icoint.h
  3. // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  4. // Steven J. Bailey
  5. // --------------------------------------------------------------------------------
  6. #ifndef __ICOINT_H
  7. #define __ICOINT_H
  8. // --------------------------------------------------------------------------------
  9. // Some Basic Function Definitions
  10. // --------------------------------------------------------------------------------
  11. typedef HRESULT (APIENTRY *PFDLLREGSERVER)(void);
  12. typedef HRESULT (APIENTRY *PFNGETCLASSOBJECT) (REFCLSID, REFIID, LPVOID *);
  13. // --------------------------------------------------------------------------------
  14. // Int64 Macros
  15. // --------------------------------------------------------------------------------
  16. #ifdef MAC
  17. #define ULISET32(_pint64, _value) ULISet32((* _pint64), (_value))
  18. #define LISET32(_pint64, _value) LISet32((* _pint64), (_value))
  19. #define INT64SET(_pint64, _value) ULISet32((* _pint64), (_value))
  20. #define INT64INC(_pint64, _value) BuildBreak
  21. #define INT64DEC(_pint64, _value) BuildBreak
  22. #define INT64GET(_pint64) BuildBreak
  23. #else // !MAC
  24. #define ULISET32(_pint64, _value) ((_pint64)->QuadPart = _value)
  25. #define LISET32(_pint64, _value) ((_pint64)->QuadPart = _value)
  26. #define INT64SET(_pint64, _value) ((_pint64)->QuadPart = _value)
  27. #define INT64INC(_pint64, _value) ((_pint64)->QuadPart += _value)
  28. #define INT64DEC(_pint64, _value) ((_pint64)->QuadPart -= _value)
  29. #define INT64GET(_pint64) ((_pint64)->QuadPart)
  30. #endif // MAC
  31. #endif // __ICOINT_H