次の方法で共有


SnmpTfxOpen (Windows Embedded CE 6.0)

1/6/2010

This function initializes the SnmpTfx framework application. This function is an element of the SNMPTfx API. It must be called from the SnmpExtensionInit subagent routine

Syntax

SnmpTfxHandle WINAPI SnmpTfxOpen(
  DWORD numViews, 
  SnmpMibView* supportedViews 
);

Parameters

  • numViews
    Count of the number of disjoint MIB trees to be defined in this subagent. Each rooted MIB OID should be defined as a separate MIB view.
  • supportedViews
    Array of SnmpMibView structures that define the layout for each of the supported MIB views.

Return Value

The SnmpTfxOpen function returns a HANDLE value that is used to associate further calls to the SnmpTfxQuery function, while a request to the extension agent is being processed.

Remarks

The SnmpTfxOpen function should be called from the subagent's SnmpExtensionInit routine. You should store the handle in the subagent's global storage, so that it can be use to process a request to the extension agent.

Requirements

Header snmpexts.h
Library snmpapi.lib
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

SNMP Functions
SnmpTfxClose
SnmpTfxQuery
SnmpExtensionInit