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.

37 lines
624 B

  1. #pragma warning(disable:4057 4100 4201 4214 4514)
  2. #define WIN32_LEAN_AND_MEAN
  3. #define STRICT
  4. #include <windows.h>
  5. #include <commctrl.h>
  6. #include <commdlg.h>
  7. #include <windowsx.h>
  8. #include <tlhelp32.h>
  9. #include <stdlib.h>
  10. #include <stdarg.h>
  11. #include <string.h>
  12. #include <stdio.h>
  13. #pragma hdrstop
  14. HLOCAL
  15. GetLocalTaskListNt(
  16. LPDWORD pdwNumTasks
  17. );
  18. BOOL
  19. GetLocalTaskNameNt(
  20. HLOCAL hTaskList,
  21. DWORD dwItem,
  22. LPSTR lpszTaskName,
  23. DWORD cbMaxTaskName
  24. );
  25. DWORD
  26. GetLocalTaskProcessIdNt(
  27. HLOCAL hTaskList,
  28. DWORD dwItem
  29. );
  30. void
  31. FreeLocalTaskListNt(
  32. HLOCAL hTaskList
  33. );