fix-service-start-permissions-20040302

When merging the Skyrope changes I forgot to specify the SERVICE_START
privilege necessary to allow the -N option to work.
This commit is contained in:
Jeffrey Altman 2004-03-02 15:41:43 +00:00 committed by Jeffrey Altman
parent 2617395f90
commit c5689df286
2 changed files with 2 additions and 4 deletions

View File

@ -264,8 +264,7 @@ BOOL InitApp (LPSTR pszCmdLineA)
{
SC_HANDLE hService;
if ((hService = OpenService( hManager, TEXT("TransarcAFSDaemon"),
SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG |
SERVICE_QUERY_STATUS) ) != NULL)
SERVICE_QUERY_STATUS | SERVICE_START) ) != NULL)
{
if (StartService(hService, 0, 0)) {
if ( IsDebuggerPresent() )

View File

@ -203,8 +203,7 @@ BOOL CALLBACK Main_DlgProc (HWND hDlg, UINT msg, WPARAM wp, LPARAM lp)
{
SC_HANDLE hService;
if ((hService = OpenService ( hManager, TEXT("TransarcAFSDaemon"),
SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG |
SERVICE_QUERY_STATUS)) != NULL)
SERVICE_QUERY_STATUS | SERVICE_START)) != NULL)
{
if (StartService (hService, 0, 0))
TestAndDoMapShare(SERVICE_START_PENDING);