Results 1 to 9 of 9

Thread: How to make a program Invisible

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Talking

    To make the program invisible, do I just set it's visible property to False and I take it out of the taskbar? Or would that interfere with what it is doing? I want my program to run in the background (invisible)! Thanx in advance!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    not sure cuz i never tried it but if you put
    your code only in a code module,it would be invisible,
    do you think(it make sense)
    try it with a little program,
    don't forget to put a main sub in your code module!

    let me know

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    Palma de Mallorca, Spain
    Posts
    39

    Well

    If you want your program to be invisible just take it out from the taskbar and hide it(or set its visible prop to false)
    It should work well
    Code:
    On Error goto Hell

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Viper, just qurious:
    You're making some sort of virus/hacking prog?
    You want to hide it, and replace a exe in the c:\windows\system dir, even is it runnin'

    wooww I should be Inspector Gadget, or maybe even Sherlock Holmes
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Guest

    Cool Try this.. this worked for me

    Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    Public Declare Function GetCurrentProcess Lib "kernel32" () As Long
    Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
    Public Const RSP_SIMPLE_SERVICE = 1
    Public Const RSP_UNREGISTER_SERVICE = 0

    Public Sub MakeMeService()
    Dim pid As Long
    Dim reserv As Long
    pid = GetCurrentProcessId()
    regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
    End Sub


    Public Sub UnMakeMeService()
    Dim pid As Long
    Dim reserv As Long

    pid = GetCurrentProcessId()
    regserv = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
    End Sub

  6. #6
    Banned
    Join Date
    Dec 2000
    Location
    USA, NJ
    Posts
    72

    this is how

    set visible to false set showintaskbar to false. but, if the user goes in to task manager it will show up. you cannt disable that cause then the user will know something is up. so put in a really long techy name. or something that win needs to run.

    wake, will your code make the program not show in the task manager?

  7. #7
    Banned
    Join Date
    Dec 2000
    Location
    USA, NJ
    Posts
    72

    Cool wake

    wake, your code didnt work on my computer. this might be because its 2000.

  8. #8
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    Here's how to hide it from the task manager:
    Code:
    Declare Function RegisterServiceProcess Lib "kernel32" _
    	 (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long
    
    Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    Private Const RSP_SIMPLE_SERVICE = 1
    Private Const RSP_UNREGISTER_SERVICE = 0
    ' ServiceFlags: 0 means unregister as a service, 1 means to register.
    'When you register the service process it becomes hidden.
    Private Sub RemoveProgramFromList()
        Dim lngProcessID As Long
        Dim lngReturn As Long
        
        lngProcessID = GetCurrentProcessId()
        lngReturn = RegisterServiceProcess(lngProcessID, RSP_SIMPLE_SERVICE)
    End Sub
    Donald Sy - VB (ab)user

  9. #9
    Banned
    Join Date
    Dec 2000
    Location
    USA, NJ
    Posts
    72

    Lightbulb memory

    i thinks its cause of the way 2000 deals with memory. cause i have star craft(a really cool game) hacks(cheats on-line) cause alot of people cheat now. but it works threw the memory to change stats and everything. but now not one of them work. one tells you if the game is in memory and it keeps saying "game not in memory" so its the way 2000 handles memory. but i still think 2000 is the best version of win.

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