When VB compiles a project it gets classname "ThunderForm" or "ThunderformDC" is it possible to customize or change this classname?
Printable View
When VB compiles a project it gets classname "ThunderForm" or "ThunderformDC" is it possible to customize or change this classname?
My goal is to create an uncloseable program in NT.
Belive me Disabling Ctr-ALt-Del in NT 4.0 was a trick.
but my program can still be closed with a WM_Close.
But if I could randomly change my class name then my
program would be unstopable.
I know those Pay Bars from free ISP do it. Why can't we!
Well i'm sure there is a way if you create the window yourself with an api, search for it on this or api forum.
BUt i was replying to Ober, you can put cancel=1 in form_unload event and it won't even close if you tried to shutdown. Also if you start object is sub main in a module, your app won't close if the window is closed, you may load up the window again if that happens:
Code:Do
Do while Forms.count
doevents
Loop
form1.show
Loop until emergencyexit
Yes I used THe cancel=1 to disable Alt-F4 but the Ctr-Alt-Del will close it in Win98 and NT.Quote:
Originally posted by kedaman
Well i'm sure there is a way if you create the window yourself with an api, search for it on this or api forum.
BUt i was replying to Ober, you can put cancel=1 in form_unload event and it won't even close if you tried to shutdown. Also if you start object is sub main in a module, your app won't close if the window is closed, you may load up the window again if that happens:
Code:Do
Do while Forms.count
doevents
Loop
form1.show
Loop until emergencyexit
In 98 I run my program as a process so they can close as much stuff as they want..they won't be closing my bad boy.
In NT I look for the TaskManager every tenth of a sec and WM_Close it once it shows up.
I also disable the start menu to makesure they don't run any program that could close mine.
Alt+Tab really won't help since my program is constantly being brought to the top.
I also...placed the startup in the Run in the registery in the CURRENT_USER and LOCAL_MACHINE as well as the startup folder in the program manager.
Each program will check its threeback ups and replace it self if it has been deleted.
My only problem is that with all the different types of windows explorers not all the disable StartButton in NT work...So the user could run a program that could close mine...if someone where to create a program that would close mine by classname and title it could be done with a simple
Start [Run] "A:\Close Obers.exe"
but if my classname was randomly chosen each time the program started...then I don't see how they could close my program.
The program is used to secure my personal computer at work.
SO I mean it has a good use!
Well let me know if anyone knows how to change the class name...
I don't know what Dino wanted to do with it but I think we could all benefit if we were to hide what we coded our programs in.
I once simply used the "Form_Terminate()" routine to reload my code again when it was "killed" by a user. To avoid deleting the .exe-file, catch all calls to applications that are able to delete files and send an "WM_CLOSE" to the active windowhandle. Allthough I'm not sure how this will function on NT.
Quote:
Originally posted by Ober
Yes I used THe cancel=1 to disable Alt-F4 but the Ctr-Alt-Del will close it in Win98 and NT.Quote:
Originally posted by kedaman
Well i'm sure there is a way if you create the window yourself with an api, search for it on this or api forum.
BUt i was replying to Ober, you can put cancel=1 in form_unload event and it won't even close if you tried to shutdown. Also if you start object is sub main in a module, your app won't close if the window is closed, you may load up the window again if that happens:
Code:Do
Do while Forms.count
doevents
Loop
form1.show
Loop until emergencyexit
In 98 I run my program as a process so they can close as much stuff as they want..they won't be closing my bad boy.
In NT I look for the TaskManager every tenth of a sec and WM_Close it once it shows up.
I also disable the start menu to makesure they don't run any program that could close mine.
Alt+Tab really won't help since my program is constantly being brought to the top.
I also...placed the startup in the Run in the registery in the CURRENT_USER and LOCAL_MACHINE as well as the startup folder in the program manager.
Each program will check its threeback ups and replace it self if it has been deleted.
My only problem is that with all the different types of windows explorers not all the disable StartButton in NT work...So the user could run a program that could close mine...if someone where to create a program that would close mine by classname and title it could be done with a simple
Start [Run] "A:\Close Obers.exe"
but if my classname was randomly chosen each time the program started...then I don't see how they could close my program.
The program is used to secure my personal computer at work.
SO I mean it has a good use!
Well let me know if anyone knows how to change the class name...
I don't know what Dino wanted to do with it but I think we could all benefit if we were to hide what we coded our programs in.