}
/* Send control code to the service */
- dwError = ScmControlService(lpService,
- dwControl);
+ dwError = ScmSendServiceCommand(lpService,
+ dwControl,
+ 0,
+ NULL);
/* Return service status information */
RtlCopyMemory(lpServiceStatus,
}
/* Start the service */
- dwError = ScmStartService(lpService, argc, (LPWSTR *)argv);
+ dwError = ScmSendServiceCommand(lpService,
+ SERVICE_CONTROL_START,
+ argc,
+ (LPWSTR *)argv);
return dwError;
}
/* FIXME: Convert argument vector to Unicode */
/* Start the service */
- dwError = ScmStartService(lpService, 0, NULL);
+ dwError = ScmSendServiceCommand(lpService,
+ SERVICE_CONTROL_START,
+ 0,
+ NULL);
/* FIXME: Free argument vector */