Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!caen!uflorida!pine.circa.ufl.edu!hans From: hans@pine.circa.ufl.edu (Hans van Oostrom) Newsgroups: comp.windows.ms.programmer Subject: Direct mouse driver access Message-ID: <29109@uflorida.cis.ufl.EDU> Date: 11 Jun 91 23:10:06 GMT Sender: news@uflorida.cis.ufl.EDU Reply-To: hans@pine.circa.ufl.edu Organization: University of Florida - Dept. of Anesthesiology Lines: 24 News-Software: VAX/VMS VNEWS 1.3-4 I am writing a dll that contains a function to return the mouse status (left/right button pressed). I don't have control over the current window because the dll is called from iconAuthor. I can't process mouse messages, becuase there might be none when I'm in my function, and I don't want to wait till the mouse mves or is pressed. I found the function GetCursorPos that returns me the coordinates. I could not find a function to get the status. With exehdr I noticed some functions in the mouse.drv that might provide me with the information that I need (e.g. INQUIRE). Is there anybody out there that knows how to call that or how to get that information? I also thought of trying to call int 33H via some standard dpmi interface, but I'm afraid that that will give me the dos device driver, which might not have up-to-date information; any suggestions? Please E-mail any suggestions to me so I don't have to dig through all the FidoNet stuff. Thanks Hans van Oostrom PO Box J-254, JHMHC hans@ufpine (BITNET) Gainesville, FL 32601, USA hans@pine.circa.ufl.edu (INTERNET) >>> Hoe ver je ook gaat, overal zie je landgenoten <<<