SnmpUtilOctetsNCmp function

[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 SnmpUtilOctetsNCmp function compares two octet strings. The function compares the subidentifiers in the strings until it reaches the number of subidentifiers specified by the nChars parameter. SnmpUtilOctetsNCmp is an element of the SNMP Utility API.

Syntax


SNMPAPI SnmpUtilOctetsNCmp(
  _In_ AsnOctetString *pOctets1,
  _In_ AsnOctetString *pOctets2,
  _In_ UINT           nChars
);

Parameters

pOctets1 [in]

Pointer to an AsnOctetString structure to compare.

pOctets2 [in]

Pointer to a second AsnOctetString structure to compare.

nChars [in]

Specifies the number of subidentifiers 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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Snmp.h

Library

Snmpapi.lib

DLL

Snmpapi.dll

See also

Simple Network Management Protocol (SNMP) Overview
SNMP Functions
AsnOctetString
SnmpUtilOctetsCmp

 

 

Community Additions

ADD
Show: