WinSNMP Common Error Codes
[SNMP is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Windows Remote Management, which is the Microsoft implementation of WS-Man.]
The SnmpGetLastError function can return a general error code after a WinSNMP function fails. The following table lists the WinSNMP common error codes.
| Symbolic | Code | Description |
|---|---|---|
| SNMPAPI_NOT_INITIALIZED | The SnmpStartup function did not complete successfully either since program execution began, or since a call to the SnmpCleanup function completed successfully. | |
| SNMPAPI_ALLOC_ERROR | The application specified an invalid pointer, or an error occurred during memory allocation. The Microsoft WinSNMP implementation could not obtain sufficient resources to execute the request. | |
| SNMPAPI_NOOP | The function did not complete successfully because all output parameters are NULL . | |
| SNMPAPI_OTHER_ERROR | An unknown or undefined error occurred. | |
| 4 entries | ||
Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.