home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5276 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  2.4 KB

  1. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!sousa.tay.dec.com!tallis!perkins
  2. From: perkins@tallis.enet.dec.com (Eric Perkins)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Intercepting GDI Calls:
  5. Message-ID: <2424@sousa.tay.dec.com>
  6. Date: 22 Jan 93 14:21:19 GMT
  7. Sender: newsa@sousa.tay.dec.com
  8. Reply-To: perkins@tallis.enet.dec.com
  9. Organization: Digital Equipment Corporation, Littleton MA
  10. Lines: 53
  11.  
  12.  
  13. Here is a technical problem which I think solvable but
  14. which I cannot find the answer to in the Windows SDK
  15. documentation or any other reference.
  16.  
  17. I would like to place one of my own supplied functions
  18. in between an application and the Windows GDI system.
  19.  
  20. For instance I would like to place my own function
  21. lets say called ERIC_TextOut into a DLL and have
  22. it be called when a function actually makes a Windows
  23. TextOut call.
  24.  
  25. What my function will do in turn is take the parameters
  26. that it is passed (which is the same as the actual
  27. TextOut function parameters) and pass them on to the
  28. real GDI TextOut function.
  29.  
  30. I think this can be done since I think this is what
  31. programs such as Carbon Copy for Windows do. The have
  32. on the remote system such a DLL (or maybe it is a
  33. device driver or something) and when an application on the
  34. remote system make a call to TextOut, they first get
  35. the information, send it through the communications
  36. link and on the local system they have a supporting
  37. application which is making a TextOut call locally.
  38.  
  39. I would hate to get into device drivers for this and thought
  40. that through some mechanism of sub-classing or such that it
  41. could be done.
  42.  
  43. I know that I can set a Windows hook for certain events, but they
  44. do not seem to include any/all of the GDI functions, only a sub-set
  45. such as CreateWindows or certain messages.
  46.  
  47. All inputs welcomed...
  48.  
  49. If the problem space needs further clarification, post it here
  50. and I will to better define the problem.
  51.  
  52.  
  53. -- Thanks, Eric
  54.  
  55. ===============================================================================
  56. -- Note: All views questions, and thoughts are my own and in no way represent
  57. --       those of my employer or anyone else.
  58. --
  59. -- I can be reached by the following means:
  60. -- Eric Perkins            E-Mail : perkins@tallis.enet.dec.com
  61. -- Digital Equipment Corp    Phone  : (508) 952-3144
  62. -- 153 Taylor Street        FAX    : (508) 952-3023
  63. -- Littleton, MA 01460-1407
  64. ===============================================================================
  65.