Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

205 lines
9.4 KiB

  1. NetPlus WinSNMP Developer Kit August 8, 1998
  2. Current version of ACE*COMM's wsnmp32.dll:
  3. String value: v2.32.19980808
  4. Binary value: 2.0.0.25
  5. Change log:
  6. v2.32.19980808: No external changes...function error
  7. reporting mechanisms normalized across
  8. all internal modules.
  9. v2.32.19980705: Fixed an internal error return test that
  10. would have caused the SnmpCreateVbl()
  11. function to encounter an access violatoin
  12. when passed a varbind with the (obsolete)
  13. SNMP_SYNTAX_BITS syntax value.
  14. v2.32.19980622: Improved some internal error checking.
  15. Improved timeout interval handling for
  16. intervals larger than 429,496,729 centiseconds.
  17. v2.32.19980608: Fixed some flawed logic concerning freeing
  18. entities which are acting as agents.
  19. Repaired a memory leak in the implementation
  20. of the RFC 2089 automatic SNMPv2 to SNMPv1
  21. trap mapping algorithm.
  22. v2.32.19980522: Modified SnmpContextToStr() code to return the
  23. "raw" context value if the function is called
  24. in SNMPAPI_TRANSLATED mode and the subject
  25. hContext had been created in SNMPAPI_UNTRANSLATED
  26. (v1 or v2) mode.
  27. v2.32.19980507: Fixed a problem which caused some trap sending
  28. apps to fail if they issued multiple consecutive
  29. traps to a given HSNMP_ENTITY value. Added
  30. error return (SNMPAPI_TL_OTHER) to SnmpSendMsg()
  31. when WinSock sendto() fails for any reason.
  32. v2.32.19980424: Internal integrity improvements in low-level
  33. parsing routines...accept case when IPX header
  34. indicates packet length greater than actual
  35. SNMP message length.
  36. v2.32.19980416: Fixed a problem in the interface with the
  37. SNMPTRAP service that prevented non-admin users
  38. from accessing the service. See the explanatory
  39. note in a separate section later in this file for
  40. more details. Also, made some (minor) reliability
  41. and performance improvements to SNMPTRAP itself
  42. (its version is now 4.0.1381.4).
  43. v2.32.19980402: Fixed a problem that caused a comm failure on Win95
  44. systems *only* when using WinSock v2 ws2_32.dll) with
  45. *both* TCP/IP *and* IPX protocols installed.
  46. v2.32.19980330: Fixed a failure in SnmpCreateSession() to return
  47. SNMPAPI_HWND_INVALID when called in SnmpOpen() mode
  48. (i.e., fCallBack is NULL) and the hWnd parameter
  49. failed the Win32 IsWindow() check.
  50. v2.32.19980323: Made improvements to session notification dispatching
  51. algorithm for improved performance and reliability
  52. specifically related to using callback notification
  53. mode in multi-threaded/multi-session applications.
  54. v2.32.19980318: Fixed SnmpOidToStr() to return the correct byte count
  55. upon successful completion...previously it was not
  56. counting the terminating NULL byte of the output
  57. string as required by the WinSNMP spec...most apps
  58. tested only for the SNMPAPI_FAILURE case, so there
  59. were no field reports of this discrepancy. Also,
  60. added the SNMPAPI_NOOP extended error code return
  61. to cover the case of a NULL scrOID input parameter.
  62. Again, there had been no field reports of this
  63. deficiency.
  64. v2.32.19980309: Fixed a bug and made a modest performance improvement
  65. in SnmpCancelMsg().
  66. v2.32.19980216: "Fix" added to enable SNMP request/response messages
  67. over IPX for Win95. Required adding an otherwise
  68. ill-advised bind() call.
  69. v2.32.19980113: Improvements to internal message buffer management
  70. scheme (to optimize for early release of resources
  71. used for out-going messages that will not receive
  72. a response (ie., traps and response PDUs).
  73. Simplification of the housekeeping timer thread.
  74. Rationalization of the method of invoking a
  75. session's callback function that prevents multiple
  76. instances of the callback being invoked concurrently.
  77. v2.32.19971222: Improvements to internal message memory allocation
  78. scheme (to handle large numbers of outstanding messages
  79. more efficiently).
  80. v2.32.19971216: Improvements to worker thread termination logic.
  81. ------------------------------------------------------------------------
  82. Additional WinSNMP-related files may be freely obtained from the file
  83. download site, www.winsnmp.com.
  84. ------------------------------------------------------------------------
  85. If you develop WinSNMP management applications or agents and would like
  86. to participate in a co-marketing program with ACE*COMM, please contact
  87. Ben Gray, [email protected].
  88. ------------------------------------------------------------------------
  89. If you are new to WinSNMP development, please read the following
  90. documents before proceeding, in the following order:
  91. - winsnmp2.txt
  92. - winsnmp.doc
  93. The first is the WinSNMP v2.0 Addendum. It clarifies certain aspects
  94. of WinSNMP that were ambiguous in the previous version (v1.1a, defined
  95. in winsnmp.doc) of the API and it describes the five new functions
  96. added for v2.0.
  97. This version of ACE*COMM's NetPlus WinSNMP implementation for Win32
  98. fully implements WinSNMP v2.0 and incorporates many architectural and
  99. performance improvements over earlier releases. It is designed to work
  100. identically over NT (3.51 through 5) and Win95, with a single difference
  101. in runtime files for received trap dispatching for NT (SNMPTRAP.EXE) vs
  102. Win95 (NP_WSX95.EXE).
  103. Current users please note:
  104. This wsnmp32.dll does not require the np_wsx32.exe "helper" app of
  105. previous versions...instead you will need either snmptrap.exe (for NT)
  106. or np_wsx95.exe (for Win95). For clarity's sake, you should remove any
  107. np_wsx32.exe from a machine running this version of wsnmp32.dll--or at
  108. least move it to a directory off the execution path. Nothing bad happens
  109. if you don't, except some wasted disk space and an increased possibility
  110. for confusion.
  111. ------------------------------------------------------------------------
  112. SNMPTRAP Info (NT only):
  113. This snmptrap.exe is a plug-replacement for the one MS ships (it will
  114. eventually *be* the one that MS ships). It is functionally identical
  115. (with some minor performance improvements), but does not have any
  116. internal dependencies on either the wsnmp32.dll or the mgmtapi.dll,
  117. although it services both.
  118. Our wsnmp32.dll will create and install the service on the first call
  119. to SnmpRegister() if it finds that the sevice has not been previously
  120. installed. The Win32 CreateService() API requires that the caller
  121. have admin priviledges.
  122. One we have created and installed the service, our wsnmp32.dll will
  123. auto-start it if it's not already running when the first app successfully
  124. calls SnmpRegister().
  125. [If you are installing our runtime files by hand--rather than via the
  126. Developer Kit automated install/setup package--then you must copy
  127. snmptrap.exe to "%SystemRoot%\system32\". If you did not previously
  128. have the SNMPTRAP service installed, then we will auto-install it,
  129. per above. If you already had the original MS version installed, then
  130. you should use an admin tool (such as sc.exe from the MS Resource Kit)
  131. to remove/delete it.
  132. If you are using the automated InstallShield procedure, then it will
  133. perform as much of the above as it can for you; but depending upon
  134. system security settings for any pre-existing SNMPTRAP installation,
  135. you may still have to perform the service remove/delete operation.
  136. ------------------------------------------------------------------------
  137. Win95 users please note:
  138. The snmptrap.exe does not apply and you do not need to have it on your
  139. system. Instead, however, you must have np_wsx95.exe accessible for
  140. auto-loading/termination by wsnmp32.dll (in response to SnmpRegister()
  141. calls).
  142. ------------------------------------------------------------------------
  143. You will note that the winsnmp.def does not contain any exports for
  144. proprietary functions. If you previously used any of our pre-standard
  145. implementations of:
  146. - SnmpSetPort()
  147. - SnmpListen()
  148. - NPWSNMPSetV1TrapPduData()
  149. you will need to at least re-link (for SnmpSetPort(), whose ordinal
  150. changed) or re-build (SnmpListen() has slightly different calling
  151. parameters in v2.0 than our pre-standard implementation and
  152. NPWSNMPSetV1TrapPduData() no longer exists, since SNMPv1 trap PDU
  153. generation is handled automatically by wsnmp32.dll).
  154. Also, this version does not use any "shared" memory across processes.
  155. Hence, there is no need to fiddle with the resource limits in the
  156. [Startup] section of the np_wsnmp.ini file (in fact, that section can
  157. be completely deleted from np_wsnmp.ini, if you want).
  158. You will find information about our MIB compiler and the MIB access
  159. routines in the underlying libraries in the NP_MIB++ directory.
  160. You are free to use our MIB compiler technology in your own apps, but
  161. please note that doing so will mean that you are using our proprietary
  162. interfaces, rather than some industry-standard (which does not yet
  163. exist anyway).
  164. For information on HP's SNMP++ DLL and sample applications, please
  165. refer to their web site at:
  166. http://rosegarden.external.hp.com/snmp++
  167. Please report any problems/questions with this release directly to
  168. Bob Natale, [email protected].