李帅的博客

软件开发爱好者

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  14 随笔 :: 3 文章 :: 4 评论 :: 0 Trackbacks
RtlInitUnicodeString ( &TcpipName, L"\\Driver\\Tcpip" );

ObReferenceObjectByName( &TcpipName,
                      OBJ_CASE_INSENSITIVE,
                      NULL,
                      0,
                      *IoDriverObjectType,
                      KernelMode,                                          
                      NULL,
                      &TcpipDrvObj);

CurrentDevice = TcpipDrvObj->DeviceObject;

while(CurrentDevice != NULL )
{
CurrentDevice->AttachedDevice=0;
CurrentDevice = CurrentDevice->NextDevice;
}

posted on 2008-09-20 10:34 李帅 阅读(355) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理