Skip to content

Latest commit

 

History

History
175 lines (136 loc) · 5.3 KB

nf-winsnmp-snmpgetretry.md

File metadata and controls

175 lines (136 loc) · 5.3 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winsnmp.SnmpGetRetry
SnmpGetRetry function (winsnmp.h)
The WinSNMP SnmpGetRetry function returns the retry count value, in units, for the retransmission of SNMP message requests. The retry count applies to calls that a WinSNMP application makes to the SnmpSendMsg function for a specified management entity.
SnmpGetRetry
SnmpGetRetry function [SNMP]
_snmp_snmpgetretry
snmp.snmpgetretry
winsnmp/SnmpGetRetry
snmp\snmpgetretry.htm
SNMP
0c01994b-adce-4525-a41c-71cbe2fde2a8
12/05/2018
SnmpGetRetry, SnmpGetRetry function [SNMP], _snmp_snmpgetretry, snmp.snmpgetretry, winsnmp/SnmpGetRetry
winsnmp.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Wsnmp32.lib
Wsnmp32.dll
Windows
19H1
SnmpGetRetry
winsnmp/SnmpGetRetry
c++
APIRef
kbSyntax
DllExport
Wsnmp32.dll
SnmpGetRetry

SnmpGetRetry function

-description

[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 WinSNMP SnmpGetRetry function returns the retry count value, in units, for the retransmission of SNMP message requests. The retry count applies to calls that a WinSNMP application makes to the SnmpSendMsg function for a specified management entity.

-parameters

-param hEntity [in]

Handle to the destination management entity of interest.

-param nPolicyRetry [out]

Pointer to an unsigned long integer variable to receive the retry count value for the specified management entity. This is a value that the Microsoft WinSNMP implementation stores in a database. If you do not need the information returned in this parameter, nPolicyRetry must be a NULL pointer.

-param nActualRetry [out]

Pointer to an unsigned long integer variable to receive the last actual or estimated retry count for the destination entity, as reported by the implementation. If you do not need the information returned in this parameter, nActualRetry must be a NULL pointer. If this parameter is a valid pointer, the function returns 0. For additional information, see the following Remarks section.

-returns

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.

Return code Description
SNMPAPI_NOT_INITIALIZED
The SnmpStartup function did not complete successfully.
SNMPAPI_ALLOC_ERROR
An error occurred during memory allocation.
SNMPAPI_ENTITY_INVALID
The hEntity parameter is invalid.
SNMPAPI_NOOP
The nPolicyRetry and nActualRetry parameters are both NULL. The operation was not performed.
SNMPAPI_OTHER_ERROR
An unknown or undefined error occurred.

-remarks

Typically a WinSNMP application, rather than an agent application, calls the SnmpGetRetry function.

A WinSNMP application can modify the retry count value with a call to the SnmpSetRetry function.

The WinSNMP application can monitor the value of the nActualRetry parameter and compare it to the value of the nPolicyRetry parameter to optimize transmission performance. For additional information, see About Retransmission and Managing the Retransmission Policy.

-see-also

SnmpGetRetransmitMode

SnmpSetRetransmitMode

SnmpSetRetry

WinSNMP Functions

WinSNMP API Overview