Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Removes a program form the crt-del-entf list! ...
Author:
GitS-Network
Website:
http://www.gits-network.com
Submitted:
6/23/2000
Version:
VB4
Compatibility:
VB4, VB5, VB6
Category:
Windows API
Views:
10395
Removes a program form the crt-del-entf list!
Declarations:
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
Code:
Public Sub RemoveProgramFromList(dbl As Boolean) Dim lngProcessID As Long Dim lngReturn As Long lngProcessID = GetCurrentProcessId() lngReturn = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE) End Sub 'copy this code above with the declatations into a new 'module 'then make in form1 something like this: Form Load() RemoveProgramFromList(true) end sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement