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.

74 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. ProvSubS.cpp
  5. Abstract:
  6. History:
  7. --*/
  8. #include "precomp.h"
  9. #include <wbemint.h>
  10. #include <HelperFuncs.h>
  11. #include "Guids.h"
  12. #include "Globals.h"
  13. #include "CGlobals.h"
  14. #include "ProvWsv.h"
  15. #include "ProvObSk.h"
  16. #include "ProvCache.h"
  17. /******************************************************************************
  18. *
  19. * Name:
  20. *
  21. *
  22. * Description:
  23. *
  24. *
  25. *****************************************************************************/
  26. LONG CompareElement ( const ProviderCacheKey &a_Arg1 , const ProviderCacheKey &a_Arg2 )
  27. {
  28. return a_Arg1.Compare ( a_Arg2 ) ;
  29. }
  30. /******************************************************************************
  31. *
  32. * Name:
  33. *
  34. *
  35. * Description:
  36. *
  37. *
  38. *****************************************************************************/
  39. LONG CompareElement ( const GUID &a_Guid1 , const GUID &a_Guid2 )
  40. {
  41. return memcmp ( & a_Guid1, & a_Guid2 , sizeof ( GUID ) ) ;
  42. }
  43. /******************************************************************************
  44. *
  45. * Name:
  46. *
  47. *
  48. * Description:
  49. *
  50. *
  51. *****************************************************************************/
  52. LONG CompareElement ( const LONG &a_Arg1 , const LONG &a_Arg2 )
  53. {
  54. return a_Arg1 - a_Arg2 ;
  55. }