home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!heathh
- From: heathh@cco.caltech.edu (Heath Ian Hunnicutt)
- Subject: How to use StackTraceCSIPFirst() ??
- Message-ID: <1992Aug27.233521.722@cco.caltech.edu>
- Sender: news@cco.caltech.edu
- Nntp-Posting-Host: punisher
- Organization: California Institute of Technology, Pasadena
- Date: Thu, 27 Aug 1992 23:35:21 GMT
- Lines: 18
-
- Hello,
-
- At one point in my program, I'd like one of my callback functions
- to trace the stack, and thereby find out where it was called from.
- My question is, how do I do this?
-
- I presume that StackTraceCSIPFirst() is the function I
- want, but I have no idea what to use for the CS and IP values.
- After all, they are by definition changing even as I store them.
- Should I figure out what the CS,IP is on the stack (pushed there
- by the preceding caller) and use that?
-
- Thanks,
- Heath
-
- --
- On Saturday, April 18, 1992, this .sig became self-aware.
-
-