[Winpcap-users] [4.0.2]pcap_handler calling convention
Marco Perrando
marco.perrando at gmail.com
Fri Jul 11 12:25:34 GMT 2008
Hi!
I am working on a piece of software that uses the winpcap dlls.
I was having some troubles. In short words, these were related to the
calling convention of the pcap_handler callback.
This callback uses the __cdecl calling convention (the default for c code).
Now I have overcome the problem by declaring in my framework the
callback with the __cdecl calling convention, but IMHO it should be
annotated with the c-macro CALLBACK (that implies the __stdcall)
because it is visible to the dll users.
Regards,
Marco.
More information about the Winpcap-users
mailing list