Hi
Anyone know the syntax for 'vpSendPacket' within this DLL wrapper
Thats if it actually works.
I have been trying for a few months to get something going but have failed every time
Now thinking of taking the PACKETX route but thought i would give this a last go.
Thanks
Oops, The 'declare function' is what i am looking for..
Last edited by Bazzer; Jan 25th, 2009 at 06:37 AM.
Hi - this thread is a bit old but I'll add a comment...
I guessed at using the following and it works for me.
Declare Function vpSendPacket Lib "VBPCAP.DLL" (ByRef buffer() As Byte) As Long
You can not seem to specify the size to send (using Type PacketHeader) - but as long as the byte array is the correct size, it sends it. So you'll have to constantly resize it. + 1
Unlike PacketX, you can not use more than 1 instance of this .dll for more than one interface. I managed to get the .dll working in seperate processes and talking to each other that way. To make it act like a router.
I could never get that DLL to work right without getting "Bad calling convention" errors, but someone fixed it and sent me a copy a long time ago in case anyone needs it...
I know we're not supposed to post binary files like DLLs, EXEs, etc... but I guess a mod can remove it if necessary...
On a sidenote, I've almost finished a packet capture library written in VB and will be released shortly in the VB6 CodeBank.
Hi - this thread is a bit old but I'll add a comment...
I guessed at using the following and it works for me.
Declare Function vpSendPacket Lib "VBPCAP.DLL" (ByRef buffer() As Byte) As Long
You can not seem to specify the size to send (using Type PacketHeader) - but as long as the byte array is the correct size, it sends it. So you'll have to constantly resize it. + 1
Unlike PacketX, you can not use more than 1 instance of this .dll for more than one interface. I managed to get the .dll working in seperate processes and talking to each other that way. To make it act like a router.
Matt
I know this thread is OLD, and I hate to have to revive such an old thread, but this DLL appears to do what I'd like to be able to do, send Link layer (L2) Ethernet frames and receive them. And I'm having problems with it, but the official forum website for this DLL file appears to be completely dead (last post anywhere on that forum is like back in 2010). I know this thread here is even older, with the last post being in 2009, but at least this thread is on a forum website (VBForums) that is NOT dead, so there's some chance I'll get a response.
Can you give me some sample code for SENDING packets? The sample program that comes with this DLL file from the official site does not include sending code, only receiving code.
By the way, how did you determine the parameters for the sending function? How do you know it only has one input parameter? I couldn't find any documentation at all for this function.