|
-
Nov 17th, 2001, 04:36 AM
#1
5 questions!!!!!
I am developin a S/W for the institute i'm studyin in. I need help with the following...
1)How do I send message or pass a value to a program that is runnin on a different machine? How do I get accept the value that is being passed?
2)The following code to hide ur program from the Alt+Ctrl+Del menu does not work!!! Can nebody debug it? My O/S is Nt.
'Declaration part
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 MakeMeService()
Dim pid As Long
Dim reserv As Long
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub
To restore your application to the Ctrl+Alt+Delete list, call the UnMakeMeService procedure:
Public sub UnMakeMeService()
Dim pid As Long
Dim reserv As Long
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, _
RSP_UNREGISTER_SERVICE)
End Sub
3) How do i trap the keys A to Z?
This declaration does not work! It works only for the Virtual keys.
Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer....
4)How do I trap two key press at the same time?
5)How do I run my program as a service?
If neone can help me plz do so. I desperately need help on this.
Thankyou.
-
Nov 17th, 2001, 04:51 AM
#2
Conquistador
1) I would assume that you need a client program on another computer to process the message.
3 & 4) Is it in your application, or do you want to do it systemwide?
-
Nov 17th, 2001, 06:51 AM
#3
-
Dec 6th, 2001, 08:12 AM
#4
Can Nobody help me with it?????
Hey ppl i really need help with it. I'd b glad if neone can gimme an example.
desperately
lilford
-
Dec 6th, 2001, 08:20 AM
#5
Conquistador
-
Dec 28th, 2001, 07:54 AM
#6
Can't anybody help me with it????
Man i really need help with it. Atleast tell me how i can pass a value from a client program runnin on a different different machine to a server program..
thankyou
-
Dec 28th, 2001, 11:46 AM
#7
Black Cat
Look into IPC (inter process communication) on MSDN, or use sockets / Winsock.
The code for hiding from Ctrl-Alt-Del is for 9x only.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Dec 29th, 2001, 01:31 AM
#8
Thankyou
Thankyou pal. i'll check it out.
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
|