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

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

Writing Kernel Mode DLLs with Unload

massoud_navabmassoud_navab Member Posts: 257
I followed the example

Plus added
DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
DriverObject->DriverUnload = Unload;

VOID Unload(
_In_ struct _DRIVER_OBJECT *DriverObject

Export driver works, but after I unload my main driver, export driver stays loaded, no calls to Unload.

I am sure there are no pending refs to the export driver, what is missing to make sure
the export driver unloads when no longer needed?



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