|
-
Jul 10th, 2000, 10:28 AM
#1
Thread Starter
Junior Member
heya gang....i have a q for all of ya...
i am trying to make my program invisible to the Ctrl+Alt+Delete menu....i have tried to do this many ways
i completely disabled the menu by using SystemsParametersinfo api...but that didn't work too well....i need to be able to see the menu still...
i heard about registerserviceprocess() on a couple of sites but that api is outdated.
i also tried app.taskvisible = false. I have a text box, 2 frames, a label, and a whack load of timers. plus the text box is having text typed into to it by the prog. i think one of these things are contributing to the visible factor because....shes still visible...
any help on this would be excellent
Elon
-
Jul 10th, 2000, 10:46 AM
#2
Hyperactive Member
karl
at vb-world's home page scool down and look for api tutorial part 2. Look under examples to try and the source code will be there on how to solve your problem.
Matt 
-
Jul 10th, 2000, 10:51 AM
#3
Code:
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 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
Usage:
Private Sub Form_Load()
MakeMeService
End Sub
Private Sub Form_Unload(Cancel As Integer)
UnMakeMeService
End Sub
-
Jul 10th, 2000, 11:06 AM
#4
Thread Starter
Junior Member
i have already tried the service register one....it does not work. whenever i try to get that api from the viewer it says it does not exist. and whenever i just paste it in anyway...it gives me an error message
-
Jul 10th, 2000, 02:00 PM
#5
Forgot this, put it in the same module as the other code.
Code:
Public Const RSP_SIMPLE_SERVICE = 1
Public Const RSP_UNREGISTER_SERVICE = 0
If that doesn't work..what error does it give you anyway? What does it say?
-
Jul 10th, 2000, 03:36 PM
#6
Lively Member
Matthew Gates. I've noticed this from your other posts as well. Are you just copying articles off VB-world or Planet-source-code and pasting them as your answer?
You should at least give credit to the original author.
Or you should just link the page to your reply because it's much easier.
Sure it makes you look smarter if you post it up, but it's like you're stealing other people's code and making it as your own. If it's not a problem, just link it next time.
-
Jul 10th, 2000, 03:42 PM
#7
Hyperactive Member
Zej leave him alone
He said where he got the info from, give him some slack. Hes just trying to help someone out...he doesnt have to but he chooses to. So lay off da nutz sack. hehe keep up da good work mathew
-RaY
VB .Net 2010 (Ultimate)
-
Jul 10th, 2000, 03:46 PM
#8
Hyperactive Member
DOH
The person before him said where the information was from rather, either way if thats not where he got it or not. As long peeps are helping other peeps out, thats what the site is for.
-RaY
VB .Net 2010 (Ultimate)
-
Jul 10th, 2000, 07:26 PM
#9
Thank you fallnwrld.
Ok, where I got that code from...I used it in a security program I made. Of course, I didn't write it.
And as fallnwrld said, I am trying to help people out because I choose to. When I give a link to a website, say a site on http://www.planet-source-code.com, I shouldn't have to give credit because their name is right on the page. So I do not expect any credit for that.
I am not as smart as Aaron Young. I am going to be 16 soon, that's all. It's not like I'm stealing code and using it for my programs. And when a source code doesn't work...I try and help the person through it. I'm not Kedaman or Megatron..they seem to have a part in every subject on this forum. I am not into database development nor am I involved in asp.
When I give source code..even if it's my own, I don't say, "Here, I wrote this...." I just post it, if it helps the user, I'm happy. If it doesn't...well...MEGATRON, KEDAMAN!!!
And Zej, I copy some articles off vb-world, but I don't expect any credit for them and I usually copy the whole thing. I have a folder of over 600 files of VB source code which I go through to help people answer their questions. Some code is mine, some is someone elses...I don't want credit for either of them.
Do you have a problem with me? I don't think I do anything wrong. Just trying to help people. And if the code was copyrighted..I wouldn't post or use it.
-
Jul 10th, 2000, 07:39 PM
#10
Fanatic Member
No kiddin' Zej just chill out. I'm sure if Matthew took the code from somewhere he would credit that place or person. Keep up the good work Matt.
D!m
-
Jul 10th, 2000, 07:49 PM
#11
Lively Member
No, I do not have a problem with you. Infact, you're probably 10 times smarter than i am. All I'm saying is it'll be much easier for you and more creditable to the original author if you just link to link the code.
-
Jul 10th, 2000, 08:24 PM
#12
All I'm saying is it'll be much easier for you and more creditable to the original author if you just link to link the code.
As I said, I have over 600 saved vb source code files on my computer. I do not have the links. I usually look at the code, if I like it, I save it, but I don't keep the link and it's a waste of time to go looking for it. A few times I've went to look for it and found it.
Sorry for any inconvience. I understand, what I do, you do not like and it's good that you speak your mind. But I am not going to change. It's just the way it is. I don't like some things people do on here, but its just a message board where you type text, get help, and get answers. It's not like you have to deal with me everyday of your life...well, if you check the board everyday, here I am! ;]
I try and help people, I joke around on here a bit. I am a person with a sense of humor. EVERYONE SHOULD LAUGH AT MY JOKES!!! ;]
Man, I am just to funny, I crack myself up..hahahaha .
-
Jul 11th, 2000, 07:37 AM
#13
Thread Starter
Junior Member
Behold...I have the Answer!
ok guys...i stayed up really late last night but i now know how you can hide a program from the task menu in Win 9x.
You have to use:
Public Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
this will get you the module handle. eg: Kernel32.dll
next you need to use the funciton:
Public Declare Function GetProcAddress Lib "kernel32" Alias "GetProcAddress" (ByVal hModule As Long, ByVal lpProcName As String) As Long
this will allow you to access the RegisterServiceProcess without getting a run time of error of "Could not find entry point into specified dll"
After this, you can use the code mathew supplied...
And there ya have it...you heard it here first!
ps: will not work in NT. but app.taskvisible will do in nt!
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
|