Platform SDK: Network Management

SnmpUtilOidToA

The SnmpUtilOidToA function converts an object identifier (OID) to a null-terminated string. This function is an element of the SNMP Utility API.

LPSTR SnmpUtilOidToA(
  AsnObjectIdentifier *Oid  // object identifier to convert
);

Parameters

Oid
[in] Pointer to an AsnObjectIdentifier structure to convert.

Return Values

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

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Snmp.h.
  Library: Use Snmpapi.lib.

See Also

Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpUtilIdsToA, AsnObjectIdentifier