Platform SDK: Network Management

SnmpGetVendorInfo

A WinSNMP application calls the SnmpGetVendorInfo function to retrieve information about the Microsoft WinSNMP implementation. The function returns the information in an smiVENDORINFO structure. The SnmpGetVendorInfo function is an element of the WinSNMP API, version 2.0.

SNMPAPI_STATUS SnmpGetVendorInfo(
  smiLPVENDORINFO vendorInfo  // pointer to structure to receive
                              //   information
);

Parameters

vendorInfo
[out] Pointer to an smiVENDORINFO structure to receive information. The information includes a way to contact Microsoft and the enterprise number assigned to Microsoft by the Internet Assigned Numbers Authority (IANA).

Return Values

If the function succeeds, the return value is SNMPAPI_SUCCESS.

If the function fails, the return value is SNMPAPI_FAILURE. To get extended error information, call SnmpGetLastError specifying a NULL value in its session parameter. The SnmpGetLastError function can return one of the following errors.

Error Code Description
SNMPAPI_NOT_INITIALIZED The SnmpStartup function did not complete successfully.
SNMPAPI_ALLOC_ERROR An error occurred during memory allocation.
SNMPAPI_NOOP The vendorInfo parameter is NULL.
SNMPAPI_OTHER_ERROR An unknown or undefined error occurred.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Winsnmp.h.
  Library: Use Wsnmp32.lib.

See Also

WinSNMP API Overview, WinSNMP Functions, smiVENDORINFO