Results 1 to 5 of 5

Thread: ClassName

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Netherlands
    Posts
    10

    Question

    When VB compiles a project it gets classname "ThunderForm" or "ThunderformDC" is it possible to customize or change this classname?

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Location
    Rockford, IL
    Posts
    21

    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!

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  4. #4
    Junior Member
    Join Date
    Aug 2000
    Location
    Rockford, IL
    Posts
    21
    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.




  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Netherlands
    Posts
    10
    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
  •  



Click Here to Expand Forum to Full Width