StartService gives me "error 2 The System Can't Find The File Specified"
I can't determine if my driver is messing up or if it's my user application. Here is what I am doing:
schService = CreateService(schSCManager, DriverName, DriverName, SERVICE_ALL_ACCESS | SERVICE_START | DELETE | SERVICE_STOP, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, SERVICE_ERROR_IGNORE, SYSTEM32_DRIVERS, NULL, NULL, NULL, NULL, NULL);
if (schService == NULL)
{
printf("Error CreateService : %d\n", GetLastError());
}
schService = OpenService(schSCManager, DriverName, SERVICE_ALL_ACCESS);
StartService(schService, 0, NULL);