| winsnmp.h (6.1.7601.17514-Windows_7.0) | | winsnmp.h (6.3.9600.17415-Windows_8.1) |
| /* WinSNMP.h */ | | /* WinSNMP.h */ |
| /* Copyright (C) 1993-1999 Microsoft Corporation */ | | /* Copyright (C) 1993-1999 Microsoft Corporation */ |
| /* v1.0 - Sep 13, 1993 */ | | /* v1.0 - Sep 13, 1993 */ |
| /* v1.1 - Jun 12, 1994 */ | | /* v1.1 - Jun 12, 1994 */ |
| /* v2.0 - Nov 1, 1997 */ | | /* v2.0 - Nov 1, 1997 */ |
| /* - Nov 17, 1997: inc limits.h, tests for ULONG/UINT_MAX */ | | /* - Nov 17, 1997: inc limits.h, tests for ULONG/UINT_MAX */ |
| /* - Mar 23, 1998: fixed typo in "lpClientData" */ | | /* - Mar 23, 1998: fixed typo in "lpClientData" */ |
| | |
|
| /* Questions/comments to Bob Natale, bnatale@acecomm.com */ | | // ATTENTION - THIS FILE CONTAINS THIRD PARTY OPEN SOURCE CODE. |
| | // IT IS CLEARED ONLY FOR LIMITED USE BY SNMP TEAM FOR SNMP TRAP. |
| | // DO NOT USE OR SHARE THIS CODE WITHOUT APPROVAL PURSUANT TO THE MICROSOFT OPEN |
| | SOURCE SOFTWARE APPROVAL POLICY. |
| | |
| #ifndef _INC_WINSNMP /* Include WinSNMP declarations */ | | #ifndef _INC_WINSNMP /* Include WinSNMP declarations */ |
| #define _INC_WINSNMP /* Just once! */ | | #define _INC_WINSNMP /* Just once! */ |
| | |
| #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) |
| | |
| #ifndef _INC_WINDOWS /* Include Windows declarations, if not already done */ | | #ifndef _INC_WINDOWS /* Include Windows declarations, if not already done */ |
| #include <windows.h> | | #include <windows.h> |
| #define _INC_WINDOWS /* Just once! */ | | #define _INC_WINDOWS /* Just once! */ |
| #endif /* _INC_WINDOWS */ | | #endif /* _INC_WINDOWS */ |
| | |
| #include <limits.h> | | #include <limits.h> |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| extern "C" { | | extern "C" { |
| | |
| skipping to change at line 379 | | skipping to change at line 385 |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpCleanupEx | | SNMPAPI_STATUS SNMPAPI_CALL SnmpCleanupEx |
| (void); | | (void); |
| typedef SNMPAPI_STATUS (SNMPAPI_CALL * PFNSNMPCLEANUPEX)(void); | | typedef SNMPAPI_STATUS (SNMPAPI_CALL * PFNSNMPCLEANUPEX)(void); |
| | |
| /* Entity/Context Functions */ | | /* Entity/Context Functions */ |
| HSNMP_ENTITY SNMPAPI_CALL SnmpStrToEntity | | HSNMP_ENTITY SNMPAPI_CALL SnmpStrToEntity |
| (IN HSNMP_SESSION session, | | (IN HSNMP_SESSION session, |
| IN LPCSTR string); | | IN LPCSTR string); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpEntityToStr | | SNMPAPI_STATUS SNMPAPI_CALL SnmpEntityToStr |
|
| (__in HSNMP_ENTITY entity, | | (_In_ HSNMP_ENTITY entity, |
| __in smiUINT32 size, | | _In_ smiUINT32 size, |
| __out_ecount(size) LPSTR string); | | _Out_writes_(size) LPSTR string); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpFreeEntity | | SNMPAPI_STATUS SNMPAPI_CALL SnmpFreeEntity |
| (IN HSNMP_ENTITY entity); | | (IN HSNMP_ENTITY entity); |
| | |
| HSNMP_CONTEXT SNMPAPI_CALL SnmpStrToContext | | HSNMP_CONTEXT SNMPAPI_CALL SnmpStrToContext |
| (IN HSNMP_SESSION session, | | (IN HSNMP_SESSION session, |
| IN smiLPCOCTETS string); | | IN smiLPCOCTETS string); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpContextToStr | | SNMPAPI_STATUS SNMPAPI_CALL SnmpContextToStr |
| (IN HSNMP_CONTEXT context, | | (IN HSNMP_CONTEXT context, |
| | |
| skipping to change at line 475 | | skipping to change at line 481 |
| | |
| /* Utility Functions */ | | /* Utility Functions */ |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpGetLastError | | SNMPAPI_STATUS SNMPAPI_CALL SnmpGetLastError |
| (IN HSNMP_SESSION session); | | (IN HSNMP_SESSION session); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpStrToOid | | SNMPAPI_STATUS SNMPAPI_CALL SnmpStrToOid |
| (IN LPCSTR string, | | (IN LPCSTR string, |
| OUT smiLPOID dstOID); | | OUT smiLPOID dstOID); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpOidToStr | | SNMPAPI_STATUS SNMPAPI_CALL SnmpOidToStr |
|
| (__in smiLPCOID srcOID, | | (_In_ smiLPCOID srcOID, |
| __in smiUINT32 size, | | _In_ smiUINT32 size, |
| __out_ecount(size) LPSTR string); | | _Out_writes_(size) LPSTR string); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpOidCopy | | SNMPAPI_STATUS SNMPAPI_CALL SnmpOidCopy |
| (IN smiLPCOID srcOID, | | (IN smiLPCOID srcOID, |
| OUT smiLPOID dstOID); | | OUT smiLPOID dstOID); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpOidCompare | | SNMPAPI_STATUS SNMPAPI_CALL SnmpOidCompare |
| (IN smiLPCOID xOID, | | (IN smiLPCOID xOID, |
| IN smiLPCOID yOID, | | IN smiLPCOID yOID, |
| IN smiUINT32 maxlen, | | IN smiUINT32 maxlen, |
| OUT smiLPINT result); | | OUT smiLPINT result); |
| | |
| skipping to change at line 513 | | skipping to change at line 519 |
| IN smiLPCOCTETS msgBufDesc); | | IN smiLPCOCTETS msgBufDesc); |
| | |
| SNMPAPI_STATUS SNMPAPI_CALL SnmpFreeDescriptor | | SNMPAPI_STATUS SNMPAPI_CALL SnmpFreeDescriptor |
| (IN smiUINT32 syntax, | | (IN smiUINT32 syntax, |
| IN smiLPOPAQUE descriptor); | | IN smiLPOPAQUE descriptor); |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| #endif /* _INC_WINSNMP */ | | #endif /* _INC_WINSNMP */ |
| | |
| End of changes. 5 change blocks. |
| 7 lines changed or deleted | | 17 lines changed or added |
|