please dont rip this site Prev Next

SnmpExtensionInit info  Overview  Group

The extensible agent calls the SnmpExtensionInit function in the extension agent DLL to perform bilateral initialization of both the extension and the extensible agents.

BOOL SnmpExtensionInit(

    DWORD dwTimeZeroReference,

    HANDLE *hPollForTrapEvent,

    AsnObjectIdentifier *supportedView

   );

Parameters

dwTimeZeroReference
[in] Specifies a time-zero reference for the extension agent.
hPollForTrapEvent
[out] Points to an event handle that will indicate that there are traps available when the extensible agent polls the SnmpExtensionTrap function entry point.
supportedView 
[out] Points to an object identifier variable structure that specifies the MIB subtree that the extension agent supports.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Remarks

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.

See Also

SnmpExtensionTrap, GetCurrentTime, CreateEvent, SetEvent


file: /Techref/os/win/api/win32/func/src/f85_19.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/12/27 04:39,
TOP NEW HELP FIND: 
3.15.195.84:LOG IN

 ©2024 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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f85_19.htm"> SnmpExtensionInit</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .