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.

52 lines
883 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. process.hxx
  5. Abstract:
  6. This header file declares process and thread related functions.
  7. Author:
  8. JasonHa
  9. --*/
  10. #ifndef _PROCESS_HXX_
  11. #define _PROCESS_HXX_
  12. #define CURRENT_PROCESS_ADDRESS -1
  13. #define CURRENT_THREAD_ADDRESS -1
  14. HRESULT
  15. GetCurrentProcessor(
  16. IN PDEBUG_CLIENT Client,
  17. OPTIONAL OUT PULONG pProcessor,
  18. OPTIONAL OUT PHANDLE phCurrentThread
  19. );
  20. HRESULT
  21. GetProcessField(
  22. IN PDEBUG_CLIENT Client,
  23. IN OUT PULONG64 pProcessAddress,
  24. IN PCSTR FieldPath,
  25. OUT PDEBUG_VALUE FieldValue,
  26. IN ULONG DesiredType
  27. );
  28. HRESULT
  29. GetThreadField(
  30. IN PDEBUG_CLIENT Client,
  31. IN OUT PULONG64 pThreadAddress,
  32. IN PCSTR FieldPath,
  33. OUT PDEBUG_VALUE FieldValue,
  34. IN ULONG DesiredType
  35. );
  36. #endif _PROCESS_HXX_