SnmpUtilOidNCmp function (snmp.h)
[SNMP is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Windows Remote Management, which is the Microsoft implementation of WS-Man.]
The SnmpUtilOidNCmp 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. SnmpUtilOidNCmp is an element of the SNMP Utility API.
Syntax
SNMPAPI SNMP_FUNC_TYPE SnmpUtilOidNCmp(
[in] AsnObjectIdentifier *pOid1,
[in] AsnObjectIdentifier *pOid2,
[in] UINT nSubIds
);
Parameters
[in] pOid1
Pointer to an AsnObjectIdentifier structure to compare.
[in] pOid2
Pointer to a second AsnObjectIdentifier structure to compare.
[in] nSubIds
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | snmp.h |
Library | Snmpapi.lib |
DLL | Snmpapi.dll |