| mgmtapi.h (6.1.7600.16385-Windows_7.0) | | mgmtapi.h (6.3.9600.17415-Windows_8.1) |
| | |
| skipping to change at line 21 | | skipping to change at line 21 |
| Definitions for SNMP Management API Development. | | Definitions for SNMP Management API Development. |
| | |
| --*/ | | --*/ |
| | |
| #ifndef _INC_MGMTAPI | | #ifndef _INC_MGMTAPI |
| #define _INC_MGMTAPI | | #define _INC_MGMTAPI |
| | |
| #if _MSC_VER > 1000 | | #if _MSC_VER > 1000 |
| #pragma once | | #pragma once |
| #endif | | #endif |
|
| | #include <winapifamily.h> |
| | |
| | #pragma region Desktop Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| /////////////////////////////////////////////////////////////////////////////// | | /////////////////////////////////////////////////////////////////////////////// |
| // // | | // // |
| // Additional header files // | | // Additional header files // |
| // // | | // // |
| /////////////////////////////////////////////////////////////////////////////// | | /////////////////////////////////////////////////////////////////////////////// |
| | |
| #include <snmp.h> | | #include <snmp.h> |
| #include <winsock.h> | | #include <winsock.h> |
| | |
| | |
| skipping to change at line 75 | | skipping to change at line 79 |
| | |
| /////////////////////////////////////////////////////////////////////////////// | | /////////////////////////////////////////////////////////////////////////////// |
| // // | | // // |
| // MGMT API prototypes // | | // MGMT API prototypes // |
| // // | | // // |
| /////////////////////////////////////////////////////////////////////////////// | | /////////////////////////////////////////////////////////////////////////////// |
| | |
| LPSNMP_MGR_SESSION | | LPSNMP_MGR_SESSION |
| SNMP_FUNC_TYPE | | SNMP_FUNC_TYPE |
| SnmpMgrOpen( | | SnmpMgrOpen( |
|
| __in_opt LPSTR lpAgentAddress, // Name/address of target agent | | _In_opt_ LPSTR lpAgentAddress, // Name/address of target agent |
| __in_opt LPSTR lpAgentCommunity, // Community for target agent | | _In_opt_ LPSTR lpAgentCommunity, // Community for target agent |
| IN INT nTimeOut, // Comm time-out in milliseconds | | IN INT nTimeOut, // Comm time-out in milliseconds |
| IN INT nRetries // Comm time-out/retry count | | IN INT nRetries // Comm time-out/retry count |
| ); | | ); |
| | |
| BOOL | | BOOL |
| SNMP_FUNC_TYPE | | SNMP_FUNC_TYPE |
| SnmpMgrCtl( | | SnmpMgrCtl( |
| LPSNMP_MGR_SESSION session, // pointer to the MGMTAPI session | | LPSNMP_MGR_SESSION session, // pointer to the MGMTAPI session |
| DWORD dwCtlCode, // control code for the command requ
ested | | DWORD dwCtlCode, // control code for the command requ
ested |
| LPVOID lpvInBuffer, // buffer with the input parameters
for the operation | | LPVOID lpvInBuffer, // buffer with the input parameters
for the operation |
| | |
| skipping to change at line 112 | | skipping to change at line 116 |
| IN LPSNMP_MGR_SESSION session, // SNMP session pointer | | IN LPSNMP_MGR_SESSION session, // SNMP session pointer |
| IN BYTE requestType, // Get, GetNext, or Set | | IN BYTE requestType, // Get, GetNext, or Set |
| IN OUT RFC1157VarBindList *variableBindings, // Varible bindings | | IN OUT RFC1157VarBindList *variableBindings, // Varible bindings |
| OUT AsnInteger *errorStatus, // Result error status | | OUT AsnInteger *errorStatus, // Result error status |
| OUT AsnInteger *errorIndex // Result error index | | OUT AsnInteger *errorIndex // Result error index |
| ); | | ); |
| | |
| BOOL | | BOOL |
| SNMP_FUNC_TYPE | | SNMP_FUNC_TYPE |
| SnmpMgrStrToOid( | | SnmpMgrStrToOid( |
|
| __in_opt LPSTR string, // OID string to be converted | | _In_opt_ LPSTR string, // OID string to be converted |
| OUT AsnObjectIdentifier *oid // OID internal representation | | OUT AsnObjectIdentifier *oid // OID internal representation |
| ); | | ); |
| | |
| BOOL | | BOOL |
| SNMP_FUNC_TYPE | | SNMP_FUNC_TYPE |
| SnmpMgrOidToStr( | | SnmpMgrOidToStr( |
| IN AsnObjectIdentifier *oid, // OID to be converted | | IN AsnObjectIdentifier *oid, // OID to be converted |
|
| __deref_opt_out LPSTR *string // OID string representation | | _Outptr_opt_ LPSTR *string // OID string representation |
| ); | | ); |
| | |
| BOOL | | BOOL |
| SNMP_FUNC_TYPE | | SNMP_FUNC_TYPE |
| SnmpMgrTrapListen( | | SnmpMgrTrapListen( |
| OUT HANDLE *phTrapAvailable // Event indicating trap available | | OUT HANDLE *phTrapAvailable // Event indicating trap available |
| ); | | ); |
| | |
| BOOL | | BOOL |
| SNMP_FUNC_TYPE | | SNMP_FUNC_TYPE |
| | |
| skipping to change at line 157 | | skipping to change at line 161 |
| OUT AsnInteger *specificTrap, // Enterprise specific type | | OUT AsnInteger *specificTrap, // Enterprise specific type |
| OUT AsnOctetString *community, // Generating community | | OUT AsnOctetString *community, // Generating community |
| OUT AsnTimeticks *timeStamp, // Time stamp | | OUT AsnTimeticks *timeStamp, // Time stamp |
| OUT RFC1157VarBindList *variableBindings // Variable bindings | | OUT RFC1157VarBindList *variableBindings // Variable bindings |
| ); | | ); |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| #endif // _INC_MGMTAPI | | #endif // _INC_MGMTAPI |
| | |
| End of changes. 5 change blocks. |
| 4 lines changed or deleted | | 11 lines changed or added |
|