How to hide the running of programs _ Web surfing

Source: Internet
Author: User

The easiest way to hide a program's operation is to set the form's visible to false. But just using Ctrl+alt+del to exhale the list of programs is completely out of the box. So how do you completely hide the running program? It's actually very simple.
We know that there are a lot of programs running in the background. But only a few of them appear in the list of programs, and most system programs do not appear. In fact, a process that is registered as a "server" does not appear in the list of programs.
API functions used: Hot Network
Private Declare Function getcurrentprocessid Lib "kernel32" Alias "GetCurrentProcessId" () as Long
This function can get a unique identifier for the current process.
Private Declare Function registerserviceprocess Lib "kernel32" (ByVal dwprocessid as Long, ByVal dwtype as long) as long
This function registers or dwprocessid a process ID number as a "server".
Constants used:
The constant here is the value of the dwtype.
Const Rsp_simple_service = 1
Register as "server".
Const Rsp_unregister_service = 0
Cancel the "server" registration.
Program:
Public Sub Makemeservice ()
Dim pid as Long, reserv as Long
' Get current Process ID
PID = GetCurrentProcessId ()
' Register as a server
Regserv = registerserviceprocess (PID, Rsp_simple_service)
End Sub
Public Sub Unmakemeservice ()
Dim pid as Long, reserv as Long
' Get current Process ID
PID = GetCurrentProcessId ()
' Cancel Server Registration Hot Network
Regserv = registerserviceprocess (PID, Rsp_unregister_service)
End Sub
However, this method does not guarantee that the program will not be detected when running, such as using the program hunter can be traced.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.