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.

24 lines
651 B

  1. #include <windows.h>
  2. #include <ole2.h>
  3. #include <stdlib.h>
  4. #ifndef _SYS_GUID_OPERATORS_
  5. //+-------------------------------------------------------------------------
  6. //
  7. // Function: IsEqualGUID (public)
  8. //
  9. // Synopsis: compares two guids for equality
  10. //
  11. // Arguments: [guid1] - the first guid
  12. // [guid2] - the second guid to compare the first one with
  13. //
  14. // Returns: TRUE if equal, FALSE if not.
  15. //
  16. //--------------------------------------------------------------------------
  17. extern "C" BOOL __stdcall IsEqualGUID(GUID &guid1, GUID &guid2)
  18. {
  19. return !memcmp((void *)&guid1,(void *)&guid2,sizeof(GUID));
  20. }
  21. #endif