12-22-2018, 06:21 PM
Some of my drivers have state information that they save when the driver shuts down (in FreeCommResource).  This works great if doing a Pause/Resume of the driver, but I noticed that it does not get called if Windows reboots for an update.  I'm not sure what happens if you use the services tool to restart the CQC Application Shell.  Do you have any thoughts on this?  Is there a way to register with windows that you want to be called before a system shutdown for this kind of thing?
I write my state every 20minutes so I don't lose *everything*, but it would be better if I could get called during shutdown.  It is possible that I could update my state more often, but that would require random access to my state file, or possibly an incremental state file supplement which I would have to merge back into the main state when I restart the driver.  
Hmmm.
--Bob
I write my state every 20minutes so I don't lose *everything*, but it would be better if I could get called during shutdown.  It is possible that I could update my state more often, but that would require random access to my state file, or possibly an incremental state file supplement which I would have to merge back into the main state when I restart the driver.  
Hmmm.
--Bob