From: SMTP%"Chris_Budd@inter-tel.com" 11-OCT-1997 10:30:49.89 To: Mikko.Jaakkola@nmp.nokia.com CC: Subj: Re: Storing my information in IRP Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Wed, 8 Oct 1997 06:46:42 -0400 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by bort.mv.net (8.8.5/mem-951016) with SMTP id DAA18171 for ; Tue, 7 Oct 1997 03:19:11 -0400 (EDT) Received: by gw.atria.com id Mon, 6 Oct 1997 20:52:23 -0400 Received: from relay2.phx.genuity.net by gw.atria.com id Mon, 6 Oct 1997 20:52:20 -0400 From: Chris_Budd@inter-tel.com Received: from nsts.inter-tel.com ([192.68.180.13]) by relay2.phx.genuity.net (8.8.7/8.8.5) with SMTP id AAA12517; Tue, 7 Oct 1997 00:52:43 GMT Received: by nsts.inter-tel.com(Lotus SMTP MTA v1.1 (385.6 5-6-1997)) id 07256529.0004F90E ; Mon, 6 Oct 1997 17:54:19 -0700 X-Lotus-FromDomain: INTER-TEL To: Mikko.Jaakkola@nmp.nokia.com cc: Ntdev@atria.com Message-ID: <07256529.00052D8B.00@nsts.inter-tel.com> Date: Mon, 6 Oct 1997 18:03:48 -0700 Subject: Re: Storing my information in IRP Mime-Version: 1.0 Content-type: text/plain; charset=US-ASCII Sender: owner-ntdev@atria.com Precedence: bulk Apparently the AuxiliaryBuffer is not suitable for layered drivers since all layers share this field in the IRP. In addition, some File System drivers use it. Instead, I learned in Jamie Hanrahan NT driver class that you could use the ioStack->Context. You could allocate your structure from nonpaged memory, and set ioNextStack->Context to this structure, if you have a monolithic driver. If you have a layered driver, the upper layers would need to set this field with IoSetCompletionRoutine; when the completion routine is called, it would need to free the allocated memory. In the lowest layer, you would have to save the previoud ioStack->Context into the structure for which you allocated memory; then set ioStack->Context to this structure. Before the lowest layer completes the Irp, it would have to restore the ioStack->Context using the saved context value, then free the allocated structure. Never tried it, but it sounds like it should work. Chris. Mikko.Jaakkola @ nmp.nokia.com 10/06/97 02:01 AM To: ntdev @ atria.com cc: (bcc: Chris Budd/Inter-Tel) Subject: Storing my information in IRP Hi! I need to hold a data(pointer) in the IRP and I cannot use DriverContext-fields. Could someone tell me some methods for storing my information in the IRP. Could AuxiliaryBuffer-field be used for this purpose? Thanks, Mikko Jaakkola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]