Received: from smtpproxy2.ext.fusa.com ([192.168.9.67]) by swilnts808.wil.fusa.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VW96NAYF; Fri, 27 Oct 2000 07:33:46 -0400 Received: from smtpproxy2.ext.fusa.com (localhost [127.0.0.1]) by smtpproxy2.ext.fusa.com (Switch-2.0.1/Switch-2.0.1) with ESMTP id e9RBbsQ03055 for ; Fri, 27 Oct 2000 11:37:54 GMT Received: from lists.osr.com (lists.osr.com [38.220.243.245]) by smtpproxy2.ext.fusa.com (Switch-2.0.1/Switch-2.0.1) with SMTP id e9RBbsn03051 for ; Fri, 27 Oct 2000 11:37:54 GMT MIME-Version: 1.0 Message-Id: Date: Fri, 27 Oct 2000 19:32:47 +0800 (CST) From: "lxx" To: "NT Developers Interest List" Subject: [ntdev] in dispatch routines for MJ_CREATE or MJ_CLOSE, how to distinguish which ui app called CreateFile API? X-Priority: 3 X-Originating-IP: [203.93.178.101] List-Unsubscribe: List-Software: Lyris Server version 3.0 List-Subscribe: List-Owner: X-List-Host: OSR Open Systems Resources, Inc. Reply-To: "NT Developers Interest List" X-Message-Id: <39F967DF.09172@bjapp5> Sender: bounce-ntdev-247@lists.osr.com Precedence: bulk Content-Type: text/plain; charset=unknown-8bit Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtpproxy2.ext.fusa.com id e9RBbsQ03055 Hi i am writing a hid upfilter driver for joystick.i need to find out weathe= r the MJ_CREATE or MJ_CLOSE irps was sent by my user mode application , b= y the way i can complete the irps with SUCCESS, if not from my app, then = i just send them to lower driver by calling IoCallDriver(...). formerly i do this by creating a control device object to communicate wit= h my app, and saved a pointer of such device object.so i can distinguish = the irps by comparing the parameter(pointer to device object) with the sa= ved device object in create/close dispatch routines. but now, i want to use interface to communicating, that is, i need not to= create a control device object(this object as if cannot be unloaded when= i unplugged the joystick, but interface does).however in create or close= dispatch routines, the passed in parameters are a irp and a pointer to d= evice object,so how can i extract proper information from these two param= eters to judge weather the MJ_CREATE and MJ_CLOSE irps sent by my app? Thanks in advance lxx_hsws 2000/10/27 ----------------------------------------------- 163=B5=E7=D7=D3=D3=CA=BE=D6=A3=AC=B8=F8=C4=FA=B8=FC=CD=EA=C3=C0Email=B7=FE= =CE=F1=A3=A1 http://www.163.net --- You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com