Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.0 KiB

  1. //
  2. // thread.h
  3. //
  4. #if 0
  5. typedef BOOL (*ENUMTHREAD)(DWORD dwThreadId, DWORD dwProcessId, void *pv);
  6. BOOL EnumThreads(ENUMTHREAD pfnEnum, void *pv);
  7. BOOL IsThreadId(DWORD dwThreadId);
  8. DWORD GetProcessId(DWORD dwThreadId);
  9. DWORD GetThreadInputIdle(DWORD dwProcessId, DWORD dwThreadId);
  10. #endif
  11. BOOL Is16bitThread(DWORD dwProcessId, DWORD dwThreadId);
  12. #ifdef LATER
  13. typedef BOOL (*WIN9XENUMPROCESS)(DWORD dwProcessId, void *pv);
  14. BOOL Win9xEnumProcess(WIN9XENUMPROCESS pfnEnum, void *pv);
  15. #endif
  16. #if 0
  17. typedef struct _THREADFIND {
  18. DWORD dwThreadId;
  19. DWORD dwProcessId;
  20. BOOL bFound;
  21. } THREADFIND;
  22. BOOL CALLBACK EnumThreadProc(DWORD dwThreadId, DWORD dwProcessId, THREADFIND *ptc);
  23. typedef struct _SYSTEM_PROCESS_INFORMATION_NT4 {
  24. ULONG NextEntryOffset;
  25. ULONG NumberOfThreads;
  26. LARGE_INTEGER SpareLi1;
  27. LARGE_INTEGER SpareLi2;
  28. LARGE_INTEGER SpareLi3;
  29. LARGE_INTEGER CreateTime;
  30. LARGE_INTEGER UserTime;
  31. LARGE_INTEGER KernelTime;
  32. UNICODE_STRING ImageName;
  33. KPRIORITY BasePriority;
  34. HANDLE UniqueProcessId;
  35. HANDLE InheritedFromUniqueProcessId;
  36. ULONG HandleCount;
  37. ULONG SpareUl2;
  38. ULONG SpareUl3;
  39. ULONG PeakVirtualSize;
  40. ULONG VirtualSize;
  41. ULONG PageFaultCount;
  42. ULONG PeakWorkingSetSize;
  43. ULONG WorkingSetSize;
  44. ULONG QuotaPeakPagedPoolUsage;
  45. ULONG QuotaPagedPoolUsage;
  46. ULONG QuotaPeakNonPagedPoolUsage;
  47. ULONG QuotaNonPagedPoolUsage;
  48. ULONG PagefileUsage;
  49. ULONG PeakPagefileUsage;
  50. ULONG PrivatePageCount;
  51. } SYSTEM_PROCESS_INFORMATION_NT4, *PSYSTEM_PROCESS_INFORMATION_NT4;
  52. typedef struct _SYSTEM_THREAD_INFORMATION_NT4 {
  53. LARGE_INTEGER KernelTime;
  54. LARGE_INTEGER UserTime;
  55. LARGE_INTEGER CreateTime;
  56. ULONG WaitTime;
  57. PVOID StartAddress;
  58. CLIENT_ID ClientId;
  59. KPRIORITY Priority;
  60. LONG BasePriority;
  61. ULONG ContextSwitches;
  62. ULONG ThreadState;
  63. ULONG WaitReason;
  64. } SYSTEM_THREAD_INFORMATION_NT4, *PSYSTEM_THREAD_INFORMATION_NT4;
  65. #endif