2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS SC utility
4 * FILE: subsys/system/sc/create.c
5 * PURPOSE: control ReactOS services
6 * PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
8 * Ged Murphy 20/10/05 Created
14 BOOL
Create(LPCTSTR ServiceName
, LPCTSTR
*ServiceArgs
)
17 LPCTSTR BinaryPathName
= *++ServiceArgs
;
18 LPCTSTR
*Options
= ++ServiceArgs
;
20 if ((! ServiceName
) || (! BinaryPathName
))
24 printf("service to create - %s\n", ServiceName
);
25 printf("Binary path - %s\n", BinaryPathName
);
26 printf("Arguments :\n");
29 printf("%s\n", *Options
);
33 hSc
= CreateService(hSCManager
,
37 SERVICE_WIN32_OWN_PROCESS
,
49 _tprintf(_T("CreateService failed\n"));
55 CloseServiceHandle(hSc
);