Hi,
I’m writing a miniport NDIS driver and I need to update a file during computer restart.
The problem is that in my shutdown handler when I’m trying to access the file I get error STATUS_TOO_LATE when I call ZwCreateFile.
According to header file this error code mean that “A write operation was attempted to a volume after it was dismounted”
is there an earlier callback that I can use that happen during computer restart?
is there a way to ensure that the filesystem will go down after my Miniport driver will unload?
This is a driver for a wifi card.
Thanks,
Sagi
Register a power ex notification callback. It will be called right before power down starts.
d
Bent from my phone
From: xxxxx@tandemg.commailto:xxxxx
Sent: ?5/?8/?2014 8:01 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] ZwCreateFile fail with error STATUS_TOO_LATE
Hi,
I’m writing a miniport NDIS driver and I need to update a file during computer restart.
The problem is that in my shutdown handler when I’m trying to access the file I get error STATUS_TOO_LATE when I call ZwCreateFile.
According to header file this error code mean that “A write operation was attempted to a volume after it was dismounted”
is there an earlier callback that I can use that happen during computer restart?
is there a way to ensure that the filesystem will go down after my Miniport driver will unload?
This is a driver for a wifi card.
Thanks,
Sagi
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>
Hi,
Thanks for the reply.
Do you mean to use the PoRegisterPowerSettingCallback API?
Can it be used from an NDIS Miniport driver?
Thanks,
Sagi
ExCreateCallback, ExRegisterCallback
d
Bent from my phone
From: xxxxx@tandemg.commailto:xxxxx
Sent: ?5/?8/?2014 8:24 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] ZwCreateFile fail with error STATUS_TOO_LATE
Hi,
Thanks for the reply.
Do you mean to use the PoRegisterPowerSettingCallback API?
Can it be used from an NDIS Miniport driver?
Thanks,
Sagi
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>