Results 1 to 5 of 5

Thread: VBPCAP.DLL vpSendPacket

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Location
    Nr Norwich
    Posts
    12

    VBPCAP.DLL vpSendPacket

    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.

  2. #2
    New Member
    Join Date
    Jul 2009
    Location
    Brighton, UK
    Posts
    1

    Smile Re: VBPCAP.DLL vpSendPacket

    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

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: VBPCAP.DLL vpSendPacket

    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.
    Attached Files Attached Files

  4. #4
    Addicted Member
    Join Date
    Aug 2008
    Posts
    136

    Re: VBPCAP.DLL vpSendPacket

    Hi DigiRev,
    i would like to see your packet sniffer if you already finished it yet..

  5. #5
    Frenzied Member
    Join Date
    Oct 2008
    Posts
    1,238

    Re: VBPCAP.DLL vpSendPacket

    Quote Originally Posted by Mattyski View Post
    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.
    Last edited by Ben321; Mar 7th, 2016 at 05:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width