Everhart, Glenn (FUSA) From: Hernan Ochoa [soporte@sentinel.com.ar] Sent: Wednesday, April 28, 1999 7:50 AM To: ntdev@atria.com Subject: [ntdev] writing to a file from a filter driver Hello, well, i think i've done it. thanks you for all your help. i'm able to write to a file from my filter driver, i have to test it more because sometimes i think it crashes, but well, anyway, i still don't quit understand why it works :) because i'm doing some strange things, i'm doint this: WriteLog() { filehandle = zwcreatefile(..); fileobject = obReferenceObjectByHandle(filehandle,...); ObDereferenceObject(fileobject); zwclose(filehandle); } well, this works just fine. the thing is, if i don't issue the last zwclose the file remains open even when my drivers gets unlodaded. if i added, everything works just fine. that's seem reasonably, BUT, i'm going to all the trouble of building my own IRPs because i can't trust the filehandle, so why does the last close on the file handler works? :) another question, do i need to lock the mdl buffer i allocate to build my IRPs? thanks in adavance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]