SNMP Utility API Functions
The SNMP Utility API functions simplify manipulation of SNMP data structures and provide functionality that is useful during the development of SNMP applications. The following table shows the SNMP Utility API functions that are supported by Windows CE.
Function | Description |
---|---|
SnmpSvcGetUptime | Retrieves the number of centiseconds that the SNMP service has been running. |
SnmpSvcSetLogLevel | Adjusts the level of detail of the debugging output from the SNMP service and from SNMP extension agents by using the SnmpUtilDbgPrint function. |
SnmpSvcSetLogType | Adjusts the destination for the debugging output from the SNMP service and from SNMP extension agents by using the SnmpUtilDbgPrint function. |
SnmpUtilAsnAnyCpy | Copies to the pAnyDst parameter the variable that is pointed to by the pAnySrc parameter. The function allocates any necessary memory for the destination's copy. |
SnmpUtilAsnAnyFree | Frees the memory that is allocated for an AsnAny structure. |
SnmpUtilDbgPrint | Enables debugging output from the SNMP service. |
SnmpUtilIdsToA | Converts an OID into a single byte null-terminated ASCII string. |
SnmpUtilIdsToW | Converts an OID into a double byte null-terminated Unicode string. |
SnmpUtilMemAlloc | Allocates dynamic memory from the process heap. |
SnmpUtilMemFree | Frees the memory object that is specified. |
SnmpUtilMemReAlloc | Changes the size of the memory object that is specified. |
SnmpUtilOctetsCmp | Compares two octet strings. |
SnmpUtilOctetsCpy | Copies the variable that is pointed to by the pOctetsSrc parameter to the variable that is pointed to by the pOctetsDst parameter. The function allocates any necessary memory for the destination's copy. |
SnmpUtilOctetsFree | Frees the memory that is allocated for the octet string that is specified. |
SnmpUtilOctetsNCmp | Compares two octet strings. The function compares the subidentifiers in the strings until it reaches the number of subidentifiers that are specified by the nChars parameter. |
SnmpUtilOidAppend | Appends the source OID to the destination OID. |
SnmpUtilOidCmp | Compares two OIDs. |
SnmpUtilOidCpy | Copies to the pOidDst parameter the variable that is pointed to by the pOidSrc parameter and allocates any necessary memory for the destination's copy. |
SnmpUtilOidFree | Frees the memory that is allocated for an OID. |
SnmpUtilOidNCmp | Compares two OIDs. The function compares the subidentifiers in the variables until it reaches the number of subidentifiers that are specified by the nSubIds parameter. |
SnmpUtilOidToA | Converts an OID into a single byte null-terminated ASCII string. |
SnmpUtilOidToW | Converts an OID into a double byte null-terminated Unicode string. |
SnmpUtilPrintToStrAsnAny | Prints the value of the Any parameter to the standard output. Developers can choose which output the string should be printed to depending on whether the function is used for debugging or any other purposes. |
SnmpUtilVarBindCpy | Copies the SnmpVarBind structure that is specified, and allocates any necessary memory for the destination structure. |
SnmpUtilVarBindFree | Frees the memory that is allocated for an SnmpVarBind structure. |
SnmpUtilVarBindListCpy | Copies the SnmpVarBindList structure that is specified and allocates any necessary memory for the destination's copy. |
SnmpUtilVarBindListFree | Frees the memory that is allocated for an SnmpVarBindList structure. |
See Also
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.