\\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

posted on   lydstory  阅读(35)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用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 文件比较目录代码差异

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示