\\Device\\Mup
> Hi all,
>
> I am kinda a novice to the world of NT device driver so
> please excuse my ignorance if I am asking stupid
> questions.
>
> I am trying to write a filter driver which redirect file requests
> from one server to another server. For example, if someone want to
> open file \\server-A\share\file-A.txt , then I want to automatically
> redirect
> the request to server-B instead. What Target Device should I attach my
> filter to?? I tried to get the device for \Device\Mup but it failed with
> STATUS_SHARING_VIOLATION. What does that mean??
>
> RtlInitUnicodeString(&deviceNameString, L"\\Device\\Mup");
> status = IoGetDeviceObjectPointer(&deviceNameString,
> STANDARD_RIGHTS_ALL,
> &deviceExtension->TargetFileObject,
> &deviceExtension->TargetDeviceObject);
>
> Any help would be much appreciated!
>
> Thanks,
> Patrick
>
> I am kinda a novice to the world of NT device driver so
> please excuse my ignorance if I am asking stupid
> questions.
>
> I am trying to write a filter driver which redirect file requests
> from one server to another server. For example, if someone want to
> open file \\server-A\share\file-A.txt , then I want to automatically
> redirect
> the request to server-B instead. What Target Device should I attach my
> filter to?? I tried to get the device for \Device\Mup but it failed with
> STATUS_SHARING_VIOLATION. What does that mean??
>
> RtlInitUnicodeString(&deviceNameString, L"\\Device\\Mup");
> status = IoGetDeviceObjectPointer(&deviceNameString,
> STANDARD_RIGHTS_ALL,
> &deviceExtension->TargetFileObject,
> &deviceExtension->TargetDeviceObject);
>
> Any help would be much appreciated!
>
> Thanks,
> Patrick
分类:
驱动内核
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2022-11-04 stm32 gpio 配置
2022-11-04 STM32学习笔记之__attribute__ ((at())绝对定位分析
2022-11-04 usb hid button page 0x09
2022-11-04 USAGE_PAGE COLLECTION
2022-11-04 usb hid处理pc 往设备发数据的
2022-11-04 Usb HID report descriptor22
2022-11-04 patch 文件比较目录代码差异