Platform SDK: Network Management |
The SnmpUtilIdsToA function converts an object identifer (OID) to a null-terminated string. This function is an element of the SNMP Utility API.
LPSTR SnmpUtilIdsToA( UINT *Ids, // object identifier to convert UINT IdLength // number of elements );
For more information, see the following Return Values and Remarks sections.
The function returns a null-terminated string that contains the string representation of the array of numbers pointed to by the Ids parameter. The string contains a sequence of numbers separated by periods ('.'); for example, 1.3.6.1.4.1.311.
If the Ids parameter is null, or if the IdLength parameter specifies zero, the function returns the string "<null oid>".
The maximum length of the returned string is 256 characters. If the string's length exceeds 256 characters, the string is truncated and terminated with a sequence of three periods ('...').
The SnmpUtilIdsToA function can assist with the debugging of SNMP applications.
Note that the following memory restrictions apply when you call SnmpUtilIdsToA:
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Snmp.h.
Library: Use Snmpapi.lib.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpUtilOidToA