Results 1 to 8 of 8

Thread: 5 questions!!!!!

  1. #1
    lilford
    Guest

    Lightbulb 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.

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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?

  3. #3
    lilford
    Guest

    Omigosh!!

    Yup i know i need a client prog 4 dat man but i wat i need is an example.. ty
    i need it only for my project.
    and how do i run my proj as a service?
    thankyou for ur reply.
    but still i'm

  4. #4
    lilford
    Guest

    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

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

  6. #6
    lilford
    Guest

    Thumbs down 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

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  8. #8
    lilford
    Guest

    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
  •  



Click Here to Expand Forum to Full Width