Platform SDK: Network Management |
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 );
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. |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winsnmp.h.
Library: Use Wsnmp32.lib.