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.

46 lines
1.1 KiB

  1. //
  2. // MarsCore non-precompiled header file.
  3. //
  4. #pragma once
  5. #include <atlext.h>
  6. #include <marscore.h>
  7. #include "util.h"
  8. //#include "cstrw.h"
  9. #include "globals.h"
  10. #include <marscom.h>
  11. #ifdef __MARS_INLINE_FAST_IS_EQUAL_GUID
  12. __forceinline int operator==(REFGUID rguid1, REFGUID rguid2)
  13. {
  14. return (
  15. ((unsigned long *) &rguid1)[0] == ((unsigned long *) &rguid2)[0] &&
  16. ((unsigned long *) &rguid1)[1] == ((unsigned long *) &rguid2)[1] &&
  17. ((unsigned long *) &rguid1)[2] == ((unsigned long *) &rguid2)[2] &&
  18. ((unsigned long *) &rguid1)[3] == ((unsigned long *) &rguid2)[3]);
  19. }
  20. #else
  21. __forceinline int operator==(REFGUID guidOne, REFGUID guidOther)
  22. {
  23. return IsEqualGUID(guidOne,guidOther);
  24. }
  25. #endif
  26. __forceinline int operator!=(REFGUID guidOne, REFGUID guidOther)
  27. {
  28. return !(guidOne == guidOther);
  29. }
  30. TYPEDEF_SUB_OBJECT(CMarsWindow); // CMarsWindowSubObject
  31. TYPEDEF_SUB_OBJECT(CMarsPanel); // CMarsPanelSubObject
  32. TYPEDEF_SUB_OBJECT(CPanelCollection); // CPanelCollectionSubObject