End Google Ads 201810 - BS.net 01 --> Hello friend,

I am working on financial application.
I am using VC++.net VS 2008.
I want to avoid shutdown/restart/logoff while my application is storing the user data, authorisation/authentification or file/fund transfer.
I want to abort shutdown,restart or logoff if any third application call ExitWindow, ExitWindoEx with the SX_FORCE or user run the command on command promt "shutdown -l".
I know one way by Windows notification WM_ENDSESSION and WM_QURYENDSESSION return FALSE,but this is not working in "FORCE shutdown" or "shutdown -l".
Please give me a suggestion.
Waiting for the positive reply.

Thank you.

abhi