HSNMP_CONTEXT SnmpStrToContext(
HSNMP_SESSION session, // handle to the WinSNMP session
smiLPCOCTETS string // pointer to a string structure
);
第二个参数指什么?代表什么意思?能否给举个例子?
HSNMP_SESSION session, // handle to the WinSNMP session
smiLPCOCTETS string // pointer to a string structure
);
第二个参数指什么?代表什么意思?能否给举个例子?
The current setting of the entity and context translation mode determines the way SnmpStrToContext interprets the input string structure as shown in the following table. Entity/Context Translation Mode Meaning
SNMPAPI_TRANSLATED The implementation interprets the string parameter as a user-friendly name for a collection of managed objects. The implementation translates the name into its SNMPv1 or SNMPv2C components using the implementation's database.
SNMPAPI_UNTRANSLATED_V1 The implementation interprets the string parameter as a literal SNMP community string.
SNMPAPI_UNTRANSLATED_V2 The implementation interprets the string parameter as a literal SNMP community string.