home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 865 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.1 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!sousa.ltn.dec.com!perkins
  2. From: perkins@sousa.ltn.dec.com (Eric Perkins)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Found functions that might give CPU time?
  5. Message-ID: <1711@sousa.ltn.dec.com>
  6. Date: 8 Sep 92 18:26:39 GMT
  7. Sender: newsa@sousa.ltn.dec.com
  8. Reply-To: perkins@sousa.ltn.dec.com (Eric Perkins)
  9. Organization: Digital Equipment Corporation, Littleton MA
  10. Lines: 44
  11.  
  12.  
  13. Well, I sort of answered my last question. By using the COFF
  14. utility that was provided with the SDK, I dumped out the imported
  15. functions, and sure enough there is a set of them, from the 
  16. ntdll.dll module, which I am sure has the information that I 
  17. need to get the amount of CPU time a process/thread is taking. Fuctions
  18. like NtQueryInformationProcess might be useful.
  19.  
  20. Is Microsoft going to make these calls public? Here is the list of 
  21. calls that I found PVIEW.EXE making:
  22.  
  23. =========================================================================
  24.             ntdll.dll
  25.  
  26.                700E8 characteristics
  27.                    0 time date stamp Sat Feb 05 22:28:16 2106
  28.                  0.0 version
  29.  
  30.                  25   NtClose
  31.                  4E   NtGetContextThread
  32.                  68   NtOpenThread
  33.                  76   NtQueryInformationProcess
  34.                  7C   NtQueryObject
  35.                  83   NtQuerySystemInformation
  36.                  87   NtQueryVirtualMemory
  37.                  8C   NtReadVirtualMemory
  38.                 12A   RtlExtendedIntegerMultiply
  39.                 138   RtlFreeAnsiString
  40.                 151   RtlInitAnsiString
  41.                 162   RtlLargeIntegerAdd
  42.                 164   RtlLargeIntegerDivide
  43.                 168   RtlLargeIntegerSubtract
  44.                 1B6   RtlTimeToTimeFields
  45.                 1B8   RtlUnicodeStringToAnsiString
  46.                 1CB   RtlZeroMemory
  47.                 1C1   RtlUnwind
  48.  
  49. =========================================================================
  50.  
  51.  
  52. -- Eric Perkins
  53. -- perkins@tallis.enet.dec.com
  54. -- Views and comments are my own and not those of my employer.
  55.  
  56.