Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!ceres.physics.uiowa.edu!iowasp.physics.uiowa.edu!ns-mx!ccad.uiowa.edu!cadsi Newsgroups: comp.windows.ms.programmer Subject: Re: How can I intercept application calls to Windows? Message-ID: <1991May18.200524.21795@ccad.uiowa.edu> From: cadsi@ccad.uiowa.edu (CADSI) Date: 18 May 91 20:05:24 GMT References: <8516@uceng.UC.EDU> Organization: CAD-Research, U. of Iowa, Iowa City, Iowa Lines: 20 From article <8516@uceng.UC.EDU>, by dsims@uceng.UC.EDU (david l sims): > Remember in the good old days of DOS where we could intercept calls to the > operating system by changing a vector in the interrupt vector table? > > Well, how can I do the equivalent in Windows? I would like to write an > experimental program that would simply count the number of times a > particular Windows procedure was called. If I could intercept these > calls, I could maintain a counter and then proceed to call the real > Windows procedure after I update my counter. > > Any ideas? > SetWindowsHook() is the function you should look at. |----------------------------------------------------------------------------| |Tom Hite | The views expressed by me | |Manager, Product development | are mine, not necessarily | |CADSI (Computer Aided Design Software Inc. | the views of CADSI. | |----------------------------------------------------------------------------|