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
74 lines
1.3 KiB
/*++
|
|
|
|
Copyright (C) 1996-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ProvSubS.cpp
|
|
|
|
Abstract:
|
|
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
#include "precomp.h"
|
|
#include <wbemint.h>
|
|
|
|
#include <HelperFuncs.h>
|
|
|
|
#include "Guids.h"
|
|
#include "Globals.h"
|
|
#include "CGlobals.h"
|
|
#include "ProvWsv.h"
|
|
#include "ProvObSk.h"
|
|
|
|
#include "ProvCache.h"
|
|
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Name:
|
|
*
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
LONG CompareElement ( const ProviderCacheKey &a_Arg1 , const ProviderCacheKey &a_Arg2 )
|
|
{
|
|
return a_Arg1.Compare ( a_Arg2 ) ;
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Name:
|
|
*
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
LONG CompareElement ( const GUID &a_Guid1 , const GUID &a_Guid2 )
|
|
{
|
|
return memcmp ( & a_Guid1, & a_Guid2 , sizeof ( GUID ) ) ;
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Name:
|
|
*
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
LONG CompareElement ( const LONG &a_Arg1 , const LONG &a_Arg2 )
|
|
{
|
|
return a_Arg1 - a_Arg2 ;
|
|
}
|
|
|