X
xf_z
Unregistered / Unconfirmed
GUEST, unregistred user!
我想调用驱动,别的程序调用同一驱动都正常,我的怎么就不行啊?生成服务一直是0,而且一直是启动服务失败,生成的服务也删不掉,不知道怎么回事hSCManager := OpenSCManager(nil, nil, SC_MANAGER_CREATE_SERVICE);hService := CreateService(hSCManager, 'VirtToPhys1', 'Virtual To Physical Address Converter', SERVICE_START + SERVICE_STOP + _DELETE, SERVICE_KERNEL_DRIVER,SERVICE_DEMAND_START, SERVICE_ERROR_IGNORE, pchar(DriverDir+'HdHook.sys'), nil, nil, nil, nil, nil);if hService = 0 then SHOWMESSAge(inttostr(hservice)); //一直是0if not StartService(hService, 0,lptmp) then showmessage('启动服务错误');//一直提示错误