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

C / C++ / MFC

 
GeneralRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
Richard MacCutchan28-Aug-20 21:07
mveRichard MacCutchan28-Aug-20 21:07 
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 
Hi.

Please help me.

First of all, I hope you understand that the sentence structure can be strange as I ask questions using a translator machine.

I am developing a mini filter driver that prohibits reading from drivers other than the local disk drive.

However, IRP_MJ_CREATE does so much.

For example, it is also used to create volume drives the moment I open Explorer.

I don't want IRP_MJ_CREATE to be used when volume drives are created the moment I open Explorer.

Currently, I have registered IRP_MJ_CREATE in preOperation.


In the preOperation function, if it is not a local disk drive,

Data->IoStatus.Status = STATUS_NO_SUCH_PRIVILEGE;
Data->IoStatus.Information = 0;

It has been coded to make this work work.

Then, the moment I turned on Explorer, even the volume drives other than the local disk drive became inaccessible.

The first thing I want is that when Explorer opens, the volume drive will show up as accessible just like a local drive.

Second, I want files to be prevented from being read (prohibited to execute) when entering the volume drive.

I think the words are simple, but I think you need advanced technology. Still, I would be grateful for any help.

Thank you.
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 
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 

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.