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

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

Re: Device can not start

David_J._CraigDavid_J._Craig Member Posts: 1,885
A four or eight byte device extension seems a little small for anything
useful. I guess you have it contain a pointer to your structure, but why?
You ever review the generated code either from a .cod listing or in windbg?

<kuangnuzhiren@163.com> wrote in message news:xxxxx@ntdev...
> How are you allocating the devobj and what size are you specifyig for the
> extension? --->status = IoCreateDevice (DriverObject,
> sizeof (PDEVICE_EXTENSION),
> NULL, // No Name
> FILE_DEVICE_UNKNOWN,
> FILE_DEVICE_SECURE_OPEN,
> FALSE,
> &deviceObject);
>
> When do you delete the devobj? --->in the irp_mn_remove_device routine
> although it were never called
> When pnp is touching your remlock, is the devobj still valid? --->yes, I
> think
> Have you tested your driver with driver verifier?--->not yet, I will try.
> Which option should I turn on? Just by default?
>
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!

Upcoming OSR Seminars
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA