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.

29 lines
763 B

  1. #pragma warning(disable:4214) // bit field types other than int
  2. #pragma warning(disable:4201) // nameless struct/union
  3. #pragma warning(disable:4115) // named type definition in parentheses
  4. #pragma warning(disable:4127) // condition expression is constant
  5. #pragma warning(disable:4100) // unreferenced formal parameter
  6. #pragma warning(disable:4512) // assignment operator could not be generated
  7. extern "C" {
  8. #include <ntos.h>
  9. #include <nt.h>
  10. #include <ntioapi.h>
  11. #include <ntrtl.h>
  12. #include <nturtl.h>
  13. #include <sxstypes.h>
  14. }
  15. #if defined(__cplusplus)
  16. __forceinline
  17. int
  18. IsEqualGUID(
  19. const GUID UNALIGNED * pa,
  20. const GUID UNALIGNED * pb
  21. )
  22. {
  23. return (!memcmp(pa, pb, sizeof(GUID)));
  24. }
  25. #endif
  26. #pragma hdrstop