SnmpUtilOidToA 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 SnmpUtilOidToA function converts an object identifier (OID) to a null-terminated string. This function is an element of the SNMP Utility API.

Syntax

LPSTR SNMP_FUNC_TYPE SnmpUtilOidToA(
  [in] AsnObjectIdentifier *Oid
);

Parameters

[in] Oid

Pointer to an AsnObjectIdentifier structure to convert.

Return value

The function returns a null-terminated string of characters that contains the string representation of the object identifier pointed to by the Oid parameter.

Remarks

The SnmpUtilOidToA function can assist with the debugging of SNMP applications.

For more information, see the SnmpUtilIdsToA function. SnmpUtilOidToA calls SnmpUtilIdsToA internally to format the string.

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

AsnObjectIdentifier

SNMP Functions

Simple Network Management Protocol (SNMP) Overview

SnmpUtilIdsToA