StartService给我“错误2系统无法找到指定的文件”
我无法确定我的驱动程序是否搞乱或是否是我的用户应用程序。这就是我在做的事情:
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);