What is the calling sequence into SetEvent() in a Windows SNMP extension agent? I need to signal a trap in my extension agent.
How/where do the arguments to SetEvent( ) appear when SnmpExtensionTrap( ) receives control?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To answer my own question: there are no arguments to SetEvent( ). Just SetEvent( hTrap ) and get control at SnmpExtensionTrap( ) with the documented args:
Now it’s up to you to find out why your agent code requested the trap. Fill in the pointers in the arg list and return TRUE (you have another trap to send after this one) or FALSE (no more traps to send).