Cannot get Payload?

Discussion in 'Windows Vista Drivers' started by fkhg1, Jun 18, 2008.

  1. fkhg1

    fkhg1 Guest

    hi everyone,
    i try to get the packet payload
    with the funktion

    /* Copy the payload of the specified packet into the specified buffer.
    /* Adapted from, 12
    May 2003. */

    i have changed nothing on it and running it complete in a sample
    but the buffer is always emtpy

    GetPktPayload(PacketArray, // Copy payload
    PayloadCopy, // to area.
    szPayloadCopy, // Amount of space in area.
    &ulOrigPayload // Return number of bytes in packet.

    i have addet a debugprint in the getpktpayload funktion
    it seems that it kills the memory of it, but i didnt see where and why?

    " if (NULL==pNdisBfr) // None?
    goto Done;"
    there it is already empty

    but after the

    " NdisMoveMemory(pOutBfr, // Copy packet data
    to output buffer.

    its filled with the packet payload

    some ideas?
    fkhg1, Jun 18, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.