0

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);
4

0 回答 0