SNMP Functions (Windows Embedded CE 6.0)

1/6/2010

The following table shows the SNMP functions with a description of the purpose of each.

Programming element Description

SnmpExtensionClose

This function is called by the Microsoft Simple Network Management Protocol (SNMP) service to request that the SNMP extension agent deallocate resources and terminate operations.

SnmpExtensionInit

This function is called by the Microsoft SNMP service to initialize the SNMP extension agent dynamic-link library (DLL).

SnmpExtensionInitEx

This function is called by the Microsoft SNMP service to identify any additional management information base (MIB) subtrees the SNMP extension agent supports.

SnmpExtensionQuery

This function is called by the Microsoft SNMP service to resolve SNMP requests that contain variables within one or more of the SNMP extension agent's registered MIB subtrees.

SnmpExtensionQueryEx

This function is called by the Microsoft SNMP service to process SNMP requests that specify variables in one or more MIB subtrees registered by SNMP extension agents.

SnmpExtensionTrap

This function is called by the Microsoft SNMP service to retrieve information the service needs to generate traps for the SNMP extension agent.

SnmpSvcGetUptime

This function retrieves the number of centiseconds that the SNMP service has been running.

SnmpSvcSetLogLevel

This function adjusts the level of detail of the debug output from the SNMP service and from SNMP extension agents using the SnmpUtilDbgPrint function.

SnmpSvcSetLogType

This function adjusts the destination for the debug output from the SNMP service and from SNMP extension agents using the SnmpUtilDbgPrint function.

SnmpTfxClose

This function closes the SnmpTfx framework application.

SnmpTfxOpen

This function initializes the SnmpTfx framework application.

SnmpTfxQuery

This function resolves SNMP requests that contain variables within one or more of the SNMP extension agent's registered MIB views.

SnmpUtilAsnAnyCpy

This function copies the variable pointed to by the pAnySrc parameter to the pAnyDst parameter. The function allocates any necessary memory for the destination's copy.

SnmpUtilAsnAnyFree

This function frees the memory allocated for the specified AsnAny.

SnmpUtilDbgPrint

This function enables debugging output from the SNMP service.

SnmpUtilIdsToA

This function converts an object identifier (OID) to a null-terminated string.

SnmpUtilIdsToW

This function converts an object identifier (OID) to a Unicode string.

SnmpUtilMemAlloc

This function allocates dynamic memory from the process heap.

SnmpUtilMemFree

This function frees the specified memory object.

SnmpUtilMemReAlloc

This function changes the size of the specified memory object.

SnmpUtilOctetsCmp

This function compares two octet strings.

SnmpUtilOctetsCpy

This function copies the variable pointed to by the pOctetsSrc parameter to the variable pointed to by the pOctetsDst parameter.

SnmpUtilOctetsFree

This function frees the memory allocated for the specified octet string.

SnmpUtilOctetsNCmp

This function compares two octet strings.

SnmpUtilOidAppend

This function appends the source object identifier to the destination object identifier.

SnmpUtilOidCmp

This function compares two object identifiers.

SnmpUtilOidCpy

This function copies the variable pointed to by the pOidSrc parameter to the pOidDst parameter, allocating any necessary memory for the destination's copy.

SnmpUtilOidFree

This function frees the memory allocated for the specified object identifier.

SnmpUtilOidNCmp

This function compares two object identifiers.

SnmpUtilOidToA

This function converts an object identifier (OID) to a null-terminated string.

SnmpUtilOidToW

This function converts an object identifier (OID) to a Unicode string.

SnmpUtilPrintToStrAsnAny

This function outputs the value of the Any parameter to a string.

SnmpUtilVarBindCpy

This function copies the specified SnmpVarBind structure, and allocates any memory necessary for the destination structure.

SnmpUtilVarBindFree

This function frees the memory allocated for an SnmpVarBind structure.

SnmpUtilVarBindListCpy

This function copies the specified SnmpVarBind structure, and allocates any necessary memory for the destination's copy.

SnmpUtilVarBindListFree

This function frees the memory allocated for an SnmpVarBindList structure.

See Also

Reference

SNMP Reference