SnmpUtilOidNCmp (Compact 2013)

3/26/2014

This function compares two object identifiers. The function compares the subidentifiers in the variables until it reaches the number of subidentifiers specified by the nSubIds parameter.

Syntax

VOID SnmpUtilOidFree(
  AsnObjectIdentifier* pOid1, 
  AsnObjectIdentifier* pOid2, 
  UINT nSubIds 
);

Parameters

  • pOid2
    [in] Pointer to a second AsnObjectIdentifier structure to compare.
  • nSubIds
    [in] Specifies the number of subidentifiers to compare.

Return Value

The function returns a value greater than zero if pOid1 is greater than pOid2, zero if pOid1 equals pOid2, and less than zero if pOid1 is less than pOid2.

Requirements

Header

snmp.h

Library

snmpapi.lib

See Also

Reference

SNMP Functions
SnmpUtilOidCmp