home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1544 < prev    next >
Encoding:
Text File  |  1992-08-27  |  970 b   |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!heathh
  3. From: heathh@cco.caltech.edu (Heath Ian Hunnicutt)
  4. Subject: How to use StackTraceCSIPFirst() ??
  5. Message-ID: <1992Aug27.233521.722@cco.caltech.edu>
  6. Sender: news@cco.caltech.edu
  7. Nntp-Posting-Host: punisher
  8. Organization: California Institute of Technology, Pasadena
  9. Date: Thu, 27 Aug 1992 23:35:21 GMT
  10. Lines: 18
  11.  
  12. Hello,
  13.  
  14.     At one point in my program, I'd like one of my callback functions
  15. to trace the stack, and thereby find out where it was called from.
  16. My question is, how do I do this?
  17.  
  18.     I presume that StackTraceCSIPFirst() is the function I
  19. want, but I have no idea what to use for the CS and IP values.
  20. After all, they are by definition changing even as I store them.
  21. Should I figure out what the CS,IP is on the stack (pushed there
  22. by the preceding caller) and use that?
  23.  
  24. Thanks,
  25. Heath
  26.  
  27. -- 
  28. On Saturday, April 18, 1992, this .sig became self-aware.
  29.  
  30.