SnmpUtilOctetsCmp 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 SnmpUtilOctetsCmp function compares two octet strings. This function is an element of the SNMP Utility API.
Syntax
SNMPAPI SNMP_FUNC_TYPE SnmpUtilOctetsCmp(
[in] AsnOctetString *pOctets1,
[in] AsnOctetString *pOctets2
);
Parameters
[in] pOctets1
Pointer to an AsnOctetString structure to compare.
[in] pOctets2
Pointer to a second AsnOctetString structure to compare.
Return value
The function returns a value greater than zero if pOctets1 is greater than pOctets2, zero if pOctets1 equals pOctets2, and less than zero if pOctets1 is less than pOctets2.
Remarks
The SnmpUtilOctetsCmp function calls the SnmpUtilOctetsNCmp function.
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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for