|
-
Oct 9th, 2000, 05:36 AM
#1
Thread Starter
New Member
When VB compiles a project it gets classname "ThunderForm" or "ThunderformDC" is it possible to customize or change this classname?
-
Oct 9th, 2000, 05:54 AM
#2
Junior Member
I wanna know too!
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!
-
Oct 9th, 2000, 06:07 AM
#3
transcendental analytic
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
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 9th, 2000, 06:31 AM
#4
Junior Member
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
Yes I used THe cancel=1 to disable Alt-F4 but the Ctr-Alt-Del will close it in Win98 and NT.
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.
-
Oct 9th, 2000, 06:07 PM
#5
Thread Starter
New Member
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.
Originally posted by Ober
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
Yes I used THe cancel=1 to disable Alt-F4 but the Ctr-Alt-Del will close it in Win98 and NT.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|