I wish to execute a piece of code in C#
which updates a record in database
before the system sleep
happens.
I have tried finding it on Pinvoke
but was not able to find it. Searching for Delay Sleep returns me the results for Thread.Sleep
method.
Please help.