Sure why not, here is the code
'declare API for stop user for closing the application
Public Declare Function AbortSystemShutdown Lib "advapi32.dll" Alias "AbortSystemShutdownA" (ByVal lpMachineName As String) As Long
Private Sub MDIForm_QueryUnload(Cancel As Integer...
WEll first of all i am not making a virus :P
I am working on a VB app which saves info in registery and files when it is closed. Therefore when it is improperly shutdown like "End Tasked" forced by the user, the program next time starting is a nightmare.
Anyways I figured out the...
I need to check whether the app is being closed by the system or by the user itself.
if the user is shutting down the windows, he would cause the application to abort normally which I want to avoid. Basically i wanna avoid the user to NOT to press the "End Task" button.
I can manage...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.