Click here to Skip to main content
15,892,005 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: i5 2400 or Core 2 Duo E5800 Pin
Albert Holguin20-Jul-11 12:34
professionalAlbert Holguin20-Jul-11 12:34 
GeneralRe: i5 2400 or Core 2 Duo E5800 Pin
S Houghtelin20-Jul-11 15:25
professionalS Houghtelin20-Jul-11 15:25 
GeneralRe: i5 2400 or Core 2 Duo E5800 Pin
Chris Maunder11-Jan-12 5:06
cofounderChris Maunder11-Jan-12 5:06 
GeneralRe: i5 2400 or Core 2 Duo E5800 Pin
Albert Holguin11-Jan-12 7:40
professionalAlbert Holguin11-Jan-12 7:40 
QuestionComputer + 2 displays... Pin
Joan M13-Jul-11 4:25
professionalJoan M13-Jul-11 4:25 
AnswerRe: Computer + 2 displays... Pin
Albert Holguin13-Jul-11 4:35
professionalAlbert Holguin13-Jul-11 4:35 
QuestionMinifilter driver question. Pin
navarromoral6-Jul-11 10:37
navarromoral6-Jul-11 10:37 
AnswerRe: Minifilter driver question. Pin
Erudite_Eric7-Jul-11 0:51
Erudite_Eric7-Jul-11 0:51 
Member 8027003 wrote:
I know that I should intercept IRP_MJ_DIRECTORY_CONTROL, and append the
FILE_BOTH_DIR_INFORMATION structure corresponding to the file I want to "add",
but I don't know how to do this Sigh | :sigh:


I dont know much about minifilter drivers for file system stuff, but:

When you register as a minifilter driver your IRP handler gets the Irps before the go down the chain. (There are numerous ways of doing this, async, sync, with or without completeion routines. Oneys book is good for the details on this). You want a synch with completion routine handling of the Irp.

So you handle the IRP_MJ_DIRECTORY_CONTROL Irp in your Device control func you registered at DriverEntry.

Now it gets into the unknown for me. I would imagine you allocate some new memry which is big enough for the original Irp buffer (can be in various places depending how the IOCTL is formed: METHOD_BUFFERED METHOD_NEITHER etc) and the additional data.

You then copy the old Irp data over, add the new data at the end. And point the Irp at this new buffer.

You send it down.

In your completion routine you point the Irp to the original buffer. Delete the one you allocated, and complete the Irp so it goes back to the originator.

Give it a go. If it BSODs you know it isnt good, Smile | :)
==============================

Nothing to say.

QuestionConsider that someone else is going to pay... Pin
Dalek Dave24-Jun-11 14:23
professionalDalek Dave24-Jun-11 14:23 
AnswerRe: Consider that someone else is going to pay... Pin
Richard MacCutchan24-Jun-11 22:16
mveRichard MacCutchan24-Jun-11 22:16 
AnswerRe: Consider that someone else is going to pay... Pin
jschell27-Jun-11 8:20
jschell27-Jun-11 8:20 
GeneralRe: Consider that someone else is going to pay... Pin
Dan Neely27-Jun-11 9:34
Dan Neely27-Jun-11 9:34 
AnswerRe: Consider that someone else is going to pay... Pin
Jörgen Andersson27-Jun-11 10:44
professionalJörgen Andersson27-Jun-11 10:44 
AnswerRe: Consider that someone else is going to pay... Pin
dianago28-Jun-11 23:00
dianago28-Jun-11 23:00 
AnswerRe: Consider that someone else is going to pay... Pin
#realJSOP7-Jul-11 8:09
mve#realJSOP7-Jul-11 8:09 
AnswerRe: Consider that someone else is going to pay... Pin
DaveAuld12-Jul-11 0:04
professionalDaveAuld12-Jul-11 0:04 
QuestionA Question on Processor and Memmory Pin
harsimranb22-Jun-11 13:16
harsimranb22-Jun-11 13:16 
AnswerRe: A Question on Processor and Memmory Pin
Dr.Walt Fair, PE25-Jun-11 17:03
professionalDr.Walt Fair, PE25-Jun-11 17:03 
AnswerRe: A Question on Processor and Memmory Pin
Peter_in_278026-Jun-11 14:45
professionalPeter_in_278026-Jun-11 14:45 
QuestionBuying Cheap Hardware Pin
harsimranb21-Jun-11 9:35
harsimranb21-Jun-11 9:35 
AnswerRe: Buying Cheap Hardware Pin
Albert Holguin21-Jun-11 9:58
professionalAlbert Holguin21-Jun-11 9:58 
GeneralRe: Buying Cheap Hardware Pin
harsimranb21-Jun-11 13:31
harsimranb21-Jun-11 13:31 
GeneralRe: Buying Cheap Hardware Pin
Albert Holguin22-Jun-11 17:52
professionalAlbert Holguin22-Jun-11 17:52 
AnswerRe: Buying Cheap Hardware Pin
Eddy Vluggen21-Jun-11 12:37
professionalEddy Vluggen21-Jun-11 12:37 
GeneralRe: Buying Cheap Hardware Pin
harsimranb22-Jun-11 9:25
harsimranb22-Jun-11 9:25 

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.