The extensible agent calls the SnmpExtensionInit function in the extension agent DLL to perform bilateral initialization of both the extension and the extensible agents.
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
The dwTimeZeroReference parameter allows all extension agents to report time information from the same reference point. The extension agent can compute elapsed time by subtracting dwTimeZeroReference from the value returned by the GetCurrentTime function. This time reference is necessary to implement traps and initiate some MIB variables.
An extension agent notifies the extensible agent that it needs to send a trap by setting the state of the hPollForTrapEvent parameter that is passed back during the SnmpExtensionInit entry point to signaled. Once this event has been set to the signaled state, the extensible agent repeatedly calls the extension agent's SnmpExtensionTrap entry point until it returns a value of FALSE. This indicates that the extension agent has no more traps to send. An extension agent application typically creates the hPollForTrapEvent event handle with the CreateEvent function during initialization. It typically sets hPollForTrapEvent to the signaled state with the SetEvent function.
If the extension agent does not generate traps, the hPollForTrapEvent parameter should return a value of NULL.
SnmpExtensionTrap, GetCurrentTime, CreateEvent, SetEvent
|file: /Techref/os/win/api/win32/func/src/f85_19.htm, 3KB, , updated: 2000/4/7 12:19, local time: 2022/5/24 02:15,
|©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f85_19.htm"> SnmpExtensionInit</A>
|Did you find what you needed?|
PICList 2022 contributors:
o List host: MIT, Site host massmind.org, Top posters @20220524
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!