-
-
[求助]这样怎么加载不了驱动啊....
-
发表于:
2009-3-17 22:34
4679
-
有个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);
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!