What does this status error code mean when I debug my AVSTREAMminidriver,status=-1073741271?

Discussion in 'Windows Vista Drivers' started by eraser, Mar 27, 2009.

  1. eraser

    eraser Guest

    When I debug my minidriver for a video capture & MPEG-4 compression
    card, the KSDEVICE_DISPATCH routine is called and enter the
    HandleStartDevice routine.
    In the HandleStartDevice routine, I call IoCallDriver to pass the
    IRP_MN_START_DEVICE Irp to PCI bus driver:

    (PIO_COMPLETION_ROUTINE) OnRequestComplete,
    (PVOID) &event, TRUE, TRUE, TRUE);

    status = IoCallDriver(Device->NextDeviceObject, Irp);
    But the status code is status=-1073741271.
    What does this error code mean?
    Thanks a lot!
    eraser, Mar 27, 2009
    1. Advertisements

  2. status = IoCallDriver(Device->NextDeviceObject, Irp);
    Convert to hex and look in ntstatus.h
    Maxim S. Shatskih, Mar 27, 2009
    1. Advertisements

  3. eraser

    eraser Guest

    Thank you for your reply!
    I've checked the error code in the ntstatus.h, it says that
    I want to know what can I do to handle this error, what kind of
    mistake can cause this error when I call IoCallDriver to pass
    IRP_MN_START_DEVICE to PCI bus driver?
    eraser, Mar 27, 2009
  4. eraser

    Tim Roberts Guest

    Because YOU don't need to do that. The KS framework will do this for you
    automatically. That's one of the huge advantages of AVStream (like KMDF):
    it calls you back at convenient points in the PnP process so you can do the
    things YOU need to do for YOUR device, without making you to worry about
    these kinds of overhead details. You NEVER have to pass PnP ioctls down on
    your own.

    So, you got this error because this IRP got passed down twice.
    Tim Roberts, Mar 28, 2009
  5. eraser

    eraser Guest

    Thank you very much!
    I considered the possibility what you have told me about AVSTREAM
    before but I'm not sure, you gave me the answer I look forward to.
    It's really helpful.
    eraser, Mar 28, 2009
    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.