Hi all,

It looks like the driver entry for the Mux Sample is called two times.
Could anyone let me know why is this.


This is the DebugPrint log

00000308
3.90667701 ----------------------------------------------------------
Inside Driver Entry:::
00000309 3.90668583 ........................Registry is jj??\REGISTRY
\MACHINE\SYSTEM\ControlSet001\Services\MUXMP
00000310 3.90669179 .....................The driver object address
DriverObj 88256A48
00000311 3.90670681 ................................... about to
return from driver entry+++
00000312 3.90701342 MUX-IM:
00000313 3.90701771 ==> MPUnload: DriverObj 88256A48
00000314 3.90704489 MUX-IM:
00000315 3.90704775 <== MPUnload
00000316
4.53355837 ----------------------------------------------------------
Inside Driver Entry:::
00000317 4.53356695 ........................Registry is jj<?\REGISTRY
\MACHINE\SYSTEM\ControlSet001\Services\MUXMP
00000318 4.53357267 .....................The driver object address
DriverObj 88256A48
00000319 4.53358698 ................................... about to
return from driver entry+++




Also why is the Unload called only once. This unload is the one
registered using the NdisMRegisterUnloadHandler(NdisWrapperHandle,
MPUnload);


Regards,
NHKR

Re: Why Driver Entry called two times in the Mux Sample by Tim

Tim
Thu Jun 07 02:40:40 CDT 2007

narsha@gmail.com wrote:
>
>It looks like the driver entry for the Mux Sample is called two times.
>Could anyone let me know why is this.
>...
>Also why is the Unload called only once. This unload is the one
>registered using the NdisMRegisterUnloadHandler(NdisWrapperHandle,
>MPUnload);

I can't answer why (how did you launch this?), but why is this a concern?
It is loaded, it is unloaded, it is loaded again. If your driver cannot
handle this, it is hopelessly broken.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.