Talloula
August 15th, 1999, 06:35 PM
anyone knows how I can connect to a remote machine from my program and use the remote machine's service control manager to kill a service running on it?
I am using VC++ 6 and mfc
thanks
fluffy
August 16th, 1999, 04:38 AM
You mentioned RPC. That means that you have a server application on the remote machine and a client here. This also means that from client you can call a server's function that can do TerminateProcess() on any process there (including kernel32.dll). What exactly is your problem?
Fluffy
Talloula
August 16th, 1999, 04:50 AM
I know that the service control manager program also contains the RPC service as well
(that's what it says in vc docs)
I want to send a message to the SCM of the remote machine and tell it to kill a certain process on that machine, some messages (i.e. scmqueryservices...) don't need any RPC code, they take care of the remote calls automatically, but not the TerminateProcess message, for that i need some way of manually opening an RPC session (that's how i like to think of it) with the SCM, and then issue the terminate process command, i don't know how to do that and i am not able to find documentation, the RPC samples in VC are about writing client/server apps
(two seperate programs) and they are very intrinsic, in my case, the server is the RPC (or SCM) manager. and my application is the client, in short, I'm looking for help on how to remotely kill a process. I know it can be done I saw a program called remote task manager that does it, but it has a memory leak
regards,
Talal
Ibrahim Said
November 11th, 1999, 01:14 AM
Hi,
You can definitely hep me out with RPC. No, I am not interested in SCM. I just want to know the requirements of running a Win95 client RPC on a novell server(Netware 3.11). Sample code would be of great use. Thanks.