|
[求助]为什么这里会返回STATUS_INVALID_HANDLE
fior 我试了下把三句连在一起没问题,但是吧delete放到另外一个函数中传入HANDLE参数就不行了,明明两次的参数都是一模一样的[em_10]能不能上一下代码? |
|
[求助]为什么这里会返回STATUS_INVALID_HANDLE
是不是提前把句柄关闭了? |
|
[求助]minifilter怎么打印缓冲区中数据
FLT_POSTOP_CALLBACK_STATUS SwapPostReadBuffers( __inout PFLT_CALLBACK_DATA Data, __in PCFLT_RELATED_OBJECTS FltObjects, __in PVOID CompletionContext, __in FLT_POST_OPERATION_FLAGS Flags ) { PVOID origBuf; PFLT_IO_PARAMETER_BLOCK iopb = Data->Iopb; FLT_POSTOP_CALLBACK_STATUS retValue = FLT_POSTOP_FINISHED_PROCESSING; PPRE_2_POST_CONTEXT p2pCtx = CompletionContext; BOOLEAN cleanupAllocatedBuffer = TRUE; ASSERT(!FlagOn(Flags, FLTFL_POST_OPERATION_DRAINING)); try { if (!NT_SUCCESS(Data->IoStatus.Status) || (Data->IoStatus.Information == 0)) { leave; } if (iopb->Parameters.Read.MdlAddress != NULL) { origBuf = MmGetSystemAddressForMdlSafe( iopb->Parameters.Read.MdlAddress,NormalPagePriority ); if (origBuf == NULL) { Data->IoStatus.Status = STATUS_INSUFFICIENT_RESOURCES; Data->IoStatus.Information = 0; leave; } } else if (FlagOn(Data->Flags,FLTFL_CALLBACK_DATA_SYSTEM_BUFFER) || FlagOn(Data->Flags,FLTFL_CALLBACK_DATA_FAST_IO_OPERATION)) { origBuf = iopb->Parameters.Read.ReadBuffer; } else { if (FltDoCompletionProcessingWhenSafe( Data, FltObjects, CompletionContext, Flags, SwapPostReadBuffersWhenSafe, &retValue )) { cleanupAllocatedBuffer = FALSE; } else { Data->IoStatus.Status = STATUS_UNSUCCESSFUL; Data->IoStatus.Information = 0; } leave; } try { RtlCopyMemory( origBuf, p2pCtx->SwappedBuffer, Data->IoStatus.Information ); } except (EXCEPTION_EXECUTE_HANDLER) { Data->IoStatus.Status = GetExceptionCode(); Data->IoStatus.Information = 0; } } finally { if (cleanupAllocatedBuffer) { ExFreePool( p2pCtx->SwappedBuffer ); FltReleaseContext( p2pCtx->VolCtx ); ExFreeToNPagedLookasideList( &Pre2PostContextList, p2pCtx ); } } KdPrint(("111111 \n")); KdPrint(("%Z \n",origBuf)); KdPrint(("\n 222222 \n")); return retValue; } 以上就是代码,在read的后操作数中,代码是wdk中swapBuffers的例子,没有改,就加了一个打印,打开的文件我用notepad++改成ANSI编码了 |
|
[求助]minifilter怎么打印缓冲区中数据
Thead unicode编码还是gb2312?这些要确定两种编码我都试过了,都是乱码。 用%p ( %X) 都可以正确打印缓冲区的地址,就是内容打印不出来 |
|
[求助]minifilter怎么打印缓冲区中数据
我是这么弄得,但是打印的都是乱码,我用PVOID类型接收的数据,用%S打印的是乱码 |
|
[求助]我想学c语言,不知从哪开始。求教。
上网搜,小甲鱼c语言视频教程,我觉得他讲的比较好,学完后学基于c的数据结构,这两个是基础https://pan.baidu.com/share/link?shareid=3715862593&uk=2804941277&adapt=pc&fr=ftw#list/path=%2F%E6%8A%80%E6%9C%AF%2F%E5%B0%8F%E7%94%B2%E9%B1%BC%E7%BC%96%E7%A8%8B%E6%95%99%E5%AD%A6%2F%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%85%A5%E9%97%A8%E5%AD%A6%E4%B9%A0C%E8%AF%AD%E8%A8%80&parentPath=%2F%E6%8A%80%E6%9C%AF%2F%E5%B0%8F%E7%94%B2%E9%B1%BC%E7%BC%96%E7%A8%8B%E6%95%99%E5%AD%A6 |
|
FltUnregisterFilter( gFilterHandle )卸载卡死是什么原因
时隔一个月终于弄好了,就是get句柄后,在后面的判断语句中return之前没有释放上下文,要仔细喽! |
|
[求助]minifilter透明加密标识头写入问题
那种是一次性就把文件全读出来了 |
|
[求助]minifilter文件透明加密的标识问题
在头部加入标识时,怎么加入啊? 我先用FltWriteFile写入文件头,再用FltReadFile读文件,用 FltWriteFile写入文件,这样是错的,文件头将源文件给覆盖了, 需要创建一个零时文件来转一下么? |
|
[求助]minifilter 透明加密 修改filesize 和 validdatalength
问一下,如果实在IRP_MJ_CLEANUP中来对修改的机密文件进行加密,那么怎么判断文件是否被修改过,是不是判断最后修改的时间是否相同啊?如果是怎么获取上一次的修改时间 |
|
[求助]minifilter文件透明加密的标识问题
在IRP_MJ_CLEANUP中怎么判断文件改没改啊 |
|
[求助]文件透明加密,缓冲在何时刷新
好的,谢谢 |
|
[讨论]请教一下,现在还有谁会用WINDOWS编写驱动的?
我有过期的签名,可以对64位的驱动进行签名,想要的话可以一百多卖给你,驱动测试的时候可以用,如果想做成产品卖给其他人肯定是要买正版的签名的 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值