Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category.

DeviceIoControl failing with error code 24(ERROR_BAD_LENGTH).

Hi Experts,

I have an application which sends private IOCTL to WFP filter driver.This application is working fine on windows 7 but same application and driver trying to run on window s 10.Observing the failure as mentioned above.

Please help me in giving some pointers in debugging this issue?

Comments

  • Tim_RobertsTim_Roberts Posts: 12,616
    On May 27, 2018, at 10:47 AM, xxxxx@gmail.com <xxxxx@lists.osr.com> wrote:
    >
    > I have an application which sends private IOCTL to WFP filter driver.This application is working fine on windows 7 but same application and driver trying to run on window s 10.Observing the failure as mentioned above.
    >
    > Please help me in giving some pointers in debugging this issue?

    Well, it's your driver that is returning the error, right? Surely you know where your ioctl handlers are returning length errors.

    Do you include pointers in your data? One of the most common causes of this error is when the ioctl buffer includes a pointer, because a 64-bit driver will assume the pointer is 8 bytes long, but a 32-bit application will only allocate 4 bytes.

    Tim Roberts, xxxxx@probo.com
    Providenza & Boekelheide, Inc.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!