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: [nik] [solved] Driver not unloading under XP

Maxim_S._ShatskihMaxim_S._Shatskih Member Posts: 10,396
>The original code was keeping a double linked list of structures that were stored in each devices
>context. When an IOCTL came into the CDO, it would traverse this list, match up the structure based

This is normal.

>To me, this was a bit crazy so I removed all of that and implemented a collection.

For what? list _is_ a collection, and does not require reallocations on additions. Reallocations can fail.

Ever heard on IOCTL code collisions? if you will implement some IOCTL on a _real_ device, then you can collide with another vendor's code.

So, make your own CDO with a GUID-based name, and send all IOCTLs there (and only there).

--
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
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
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Developing Minifilters 8 April 2019 OSR Seminar Space