Do I have to call any snmp related api before calling SnmpMgrTrapListen

Tech-Archive recommends: Fix windows errors by optimizing your registry



Dear all,
I'm trying to implement a snmp trap listen deamon.
I copied the example from platform sdk.
But the api failed at the very beginning when I'm calling
SnmpMgrTrapListen(&hNewTraps).
The return error code is 42.
Do I have to call any Winsock related api before calling SnmpMgrTrapListen?
The document doesn't mention it.

Any help would be appreicated and thanks in advance.


.



Relevant Pages

  • Re: ISampleGrabber not updating
    ... I said GetState(), my other 2 posts are meant to be referring to GetState ... calling for IMediaEvent, ... I'm using the Platform SDK "Microsoft Platform SDK for ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Do I have to call any snmp related api before calling SnmpMgrTrapListen
    ... And if calling the function once again does not work, then you should consider the following. ... set translate mode (SnmpSetTranslateMode), then retransmition mode, then clears the internal data using SnmpCleanup function. ... --Vladimir, Windows SDK MVP ... Do I have to call any Winsock related api before calling SnmpMgrTrapListen? ...
    (microsoft.public.win32.programmer.networks)