You have to wait in unload routine until thread really terminates. Simply
use KeWaitForSingleObject with thread object pointer as the first parameter.
Best regards,
Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]
From: Arun kumar Sundaram[SMTP:xxxxx@hotmail.com]
Reply To: NT Developers Interest List
Sent: Wednesday, August 22, 2001 5:35 AM
To: NT Developers Interest List
Subject: [ntdev] cant i unload a driver b4 terminating the system
threads it created?Hi Guys,
I am creating a system thread in the driver entry routine. and want
this
thread to be terminated when i unload the driver. So i have a global
boolean
which when set to true the system thread will terminate itself. but the
problem is after the unload routine finishes system goes blue :(… stack
at
the time when BSOD occur isF09E25D1
PsSetCreateThreadNotifyRoutine + 00AA
KiUnexpectedInterrupt + 0180why does it happen so… cant i unload a driver b4 terminating its system
threads?ta ta,
Arun
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
You are currently subscribed to ntdev as: xxxxx@rkk.cz
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com