Article View: comp.os.ms-windows.programmer.misc
Article #2269Intercepting GDI Calls:
From: Eric Perkins
Date: Fri, 22 Jan 1993 14:21
Date: Fri, 22 Jan 1993 14:21
53 lines
2531 bytes
2531 bytes
Here is a technical problem which I think solvable but which I cannot find the answer to in the Windows SDK documentation or any other reference. I would like to place one of my own supplied functions in between an application and the Windows GDI system. For instance I would like to place my own function lets say called ERIC_TextOut into a DLL and have it be called when a function actually makes a Windows TextOut call. What my function will do in turn is take the parameters that it is passed (which is the same as the actual TextOut function parameters) and pass them on to the real GDI TextOut function. I think this can be done since I think this is what programs such as Carbon Copy for Windows do. The have on the remote system such a DLL (or maybe it is a device driver or something) and when an application on the remote system make a call to TextOut, they first get the information, send it through the communications link and on the local system they have a supporting application which is making a TextOut call locally. I would hate to get into device drivers for this and thought that through some mechanism of sub-classing or such that it could be done. I know that I can set a Windows hook for certain events, but they do not seem to include any/all of the GDI functions, only a sub-set such as CreateWindows or certain messages. All inputs welcomed... If the problem space needs further clarification, post it here and I will to better define the problem. -- Thanks, Eric =============================================================================== -- Note: All views questions, and thoughts are my own and in no way represent -- those of my employer or anyone else. -- -- I can be reached by the following means: -- Eric Perkins E-Mail : perkins@tallis.enet.dec.com -- Digital Equipment Corp Phone : (508) 952-3144 -- 153 Taylor Street FAX : (508) 952-3023 -- Littleton, MA 01460-1407 ===============================================================================
Technical Details
Message-ID:
<2424@sousa.tay.dec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!sousa.tay.dec.com!tallis!perkinsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!sousa.tay.dec.com!tallis!perkins From: perkins@tallis.enet.dec.com (Eric Perkins) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Intercepting GDI Calls: Message-ID: <2424@sousa.tay.dec.com> Date: 22 Jan 93 14:21:19 GMT Sender: newsa@sousa.tay.dec.com Reply-To: perkins@tallis.enet.dec.com Organization: Digital Equipment Corporation, Littleton MA Lines: 53