2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS SC utility
4 * FILE: subsys/system/sc/delete.c
5 * PURPOSE: control ReactOS services
6 * PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
8 * Ged Murphy 20/10/05 Created
14 BOOL
Delete(TCHAR
**Args
)
17 LPCTSTR ServiceName
= *Args
;
20 printf("service to delete - %s\n\n", ServiceName
);
22 hSc
= OpenService(hSCManager
, ServiceName
, DELETE
);
26 _tprintf(_T("openService failed\n"));
31 if (! DeleteService(hSc
))
33 _tprintf(_T("DeleteService failed\n"));
38 CloseServiceHandle(hSc
);