joyzengli
驱动牛犊
驱动牛犊
  • 注册日期2006-01-14
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分158分
  • 威望18点
  • 贡献值0点
  • 好评度15点
  • 原创分0分
  • 专家分0分
阅读:1845回复:1

请教各位高手,进来看看

楼主#
更多 发布于:2007-01-19 18:00
  小弟用王艳平写的《windows通讯与程序设计》书中源代码编译的ndis中间层驱动程序,用来做过滤驱动,怕名为passthruEx,驱动在windows2000下成功用2000DDK编译,也按照书中的方法安装,下边是安装方法:
INSTALLING THE SAMPLE
Passthru is installed as a service (called “Passthru Driver” in the supplied INFs/notification object). To install, follow the steps below.
Prepare a floppy disk (or installation directory) that contains these files: netsf.inf, netsf_m.inf and passthru.sys.
On the desktop, right-click the My Network Places icon and choose Properties.
Right-click on the relevant Local Area Connection icon and choose Properties.
Click Install, then Service, then Add, then Have Disk.
Browse to the drive/directory containing the files listed above. Click OK. This should show “Passthru Driver” in a list of Network Services. Highlight this and click OK. This should install the Passthru driver.
Click OK or Yes each time the system prompts with a warning regarding installation of unsigned files. This is necessary because binaries generated via the DDK build environment are not signed.
Two .INF files are needed rather than one because Passthru is installed both as a protocol and a miniport.


安装成功后用源代码中的测试应用程序进行测试时,跟踪发现在调用CreateFile("\\\\.\\passthru");时返回 0xffffffff,我想问一下,是不是我的驱动程序没有安装好,还是什么其他的问题?



然后自己在源代码中加入用scm打开并启动passthru的代码:

if(!::StartService(...))
{
        int errorcode = GetLastError();
        ---------->跟踪到errorcode的值为1058 : 查winerror文件表示为 ERROR_SERVICE_DISABLED      
}


请教高手,告诉我为什么,有什么解决办法?

多谢多谢



}
ajy
ajy
驱动牛犊
驱动牛犊
  • 注册日期2002-07-09
  • 最后登录2012-12-12
  • 粉丝0
  • 关注0
  • 积分101分
  • 威望20点
  • 贡献值0点
  • 好评度10点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2007-02-18 07:52
"安装成功后用源代码中的测试应用程序进行测试时,跟踪发现在调用CreateFile("\\\\.\\passthru");时返回 0xffffffff,我想问一下,是不是我的驱动程序没有安装好,还是什么其他的问题?"

passthru 没有成功安装!!!
游客

返回顶部