-
-
[求助]这样怎么加载不了驱动啊....
-
发表于:
2009-3-17 22:34
4681
-
有个shit.sys驱动,用户层加载时貌似没效果,,,,,什么情况啊,,,,
加载驱动的代码如下::::::
我是把setup()放到OnInitDialog(),位置放对了么?
void steup()
{
SC_HANDLE sa,sb;
sa = OpenSCManager(NULL,NULL,SC_MANAGER_ALL_ACCESS);
sb = CreateService(sa,
"shit",
"shit",
SERVICE_START|SERVICE_STOP,
SERVICE_KERNEL_DRIVER,
SERVICE_DEMAND_START,
SERVICE_ERROR_NORMAL,
"shit.sys",
0,
0,
0,
0,
0);
StartService(sb,NULL,NULL);
CloseServiceHandle(sb);
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课