CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Posts
    13

    How to close an application over the LAN?

    Hi,

    Currently I am able to close an application using the 'FindWindow' and 'PostMessage' functions. This works fine when you run the program on a local machine. How can we close an application on another system which is on the LAN and that machine has given me full access?
    Thanks.


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: How to close an application over the LAN?

    use the winsock control to build a client application that do actually what you are doing now. Then, build another server application the send a command, string maybe like "ShutDown" to the client application. Whenever the client application receive the command, it will just do its work.



    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

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

Featured