Everhart, Glenn From: Maxim Shatskih [maxim@vest.msk.ru] Sent: Tuesday, September 22, 1998 4:52 AM To: Laurent Jung; ntdev@atria.com Subject: RE: [ntdev] Sop a service remotely Like this: hSCMgr = OpenSCManager(szRemoteMachineName, ....) hService = OpenService(hSCMgr, szServiceName, ...) ControlService(hService, SERVICE_CONTROL_STOP,...) CloseServiceHandle(hService); CloseServiceHandle(hSCMgr); Those functions are located in ADVAPI32.DLL & will connect to remote SC via RPC to control it. Max > -----Original Message----- > From: Laurent Jung [SMTP:laurent_jung@bmc.com] > Sent: Monday, September 21, 1998 5:47 PM > To: ntdev@atria.com > Subject: [ntdev] Sop a service remotely > > > > Does anybody knows how to PROGRAMMATICALLY stop a remote service? > > Thanks > > Laurent > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > [ To unsubscribe, send email to ntdev-request@atria.com with body > UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]