Click here to Skip to main content
14,663,954 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
Richard MacCutchan28-Aug-20 21:06
mveRichard MacCutchan28-Aug-20 21:06 
QuestionProgramming.. Backtracking. Pin
vafoqome26-Aug-20 6:20
Membervafoqome26-Aug-20 6:20 
AnswerRe: Programming.. Backtracking. Pin
jeron126-Aug-20 6:22
Memberjeron126-Aug-20 6:22 
QuestionRe: Programming.. Backtracking. Pin
Richard MacCutchan26-Aug-20 21:39
mveRichard MacCutchan26-Aug-20 21:39 
AnswerRe: Programming.. Backtracking. Pin
Stefan_Lang28-Aug-20 5:23
mveStefan_Lang28-Aug-20 5:23 
AnswerRe: Programming.. Backtracking. Pin
Patrice T28-Aug-20 14:24
mvePatrice T28-Aug-20 14:24 
QuestionI want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Member 1487268117-Aug-20 23:12
MemberMember 1487268117-Aug-20 23:12 
AnswerRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Randor 19-Aug-20 18:29
professional Randor 19-Aug-20 18:29 
Hi,

I have not worked with mini filter drivers for about six years. But here are some things I think may help:

1.) In your PFLT_PRE_OPERATION_CALLBACK[^] callback you should probably allow anything originating from kernelmode to pass through. You can do this with ExGetPreviousMode[^] which will return KernelMode for file operations originating from the Windows kernel.

2.) After you have allowed kernelmode file operations to pass unmolested you can get the process ID of the usermode process performing the i/o with PsGetCurrentProcessId[^] and filter out whatever you want to pass through.

I don't normally send anyone away from codeproject.com but since I know that at least half of the Devices and Drivers team are active on the site I will defer you over to the NTFSD forum over at community.osr.com[^] where they are working with minifilters on a daily basis.

Best Wishes,
-David Delaune
GeneralRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Member 1487268119-Aug-20 18:55
MemberMember 1487268119-Aug-20 18:55 
GeneralRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Randor 19-Aug-20 19:12
professional Randor 19-Aug-20 19:12 
GeneralRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Member 1487268119-Aug-20 20:07
MemberMember 1487268119-Aug-20 20:07 
GeneralRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Randor 19-Aug-20 21:10
professional Randor 19-Aug-20 21:10 
GeneralRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Member 1487268119-Aug-20 21:20
MemberMember 1487268119-Aug-20 21:20 
GeneralRe: I want to use the mini filter driver IRP_MJ_CREATE only for opening existing files(exe files). Pin
Stefan_Lang19-Aug-20 21:48
mveStefan_Lang19-Aug-20 21:48 
QuestionHow to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
cazorla1914-Aug-20 3:30
Membercazorla1914-Aug-20 3:30 
AnswerRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Gerry Schmitz14-Aug-20 5:04
mveGerry Schmitz14-Aug-20 5:04 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
cazorla1918-Aug-20 0:57
Membercazorla1918-Aug-20 0:57 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Gerry Schmitz18-Aug-20 5:34
mveGerry Schmitz18-Aug-20 5:34 
AnswerRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Randor 14-Aug-20 8:54
professional Randor 14-Aug-20 8:54 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
cazorla1918-Aug-20 0:55
Membercazorla1918-Aug-20 0:55 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Randor 19-Aug-20 19:04
professional Randor 19-Aug-20 19:04 
QuestionRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
cazorla1919-Aug-20 20:26
Membercazorla1919-Aug-20 20:26 
AnswerRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Randor 19-Aug-20 20:57
professional Randor 19-Aug-20 20:57 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
cazorla1919-Aug-20 21:29
Membercazorla1919-Aug-20 21:29 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Randor 19-Aug-20 21:47
professional Randor 19-Aug-20 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.