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.

75 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996, 1997 Microsoft Corporation
  3. Module Name:
  4. module.h
  5. Abstract:
  6. This module contains routines to perform module related query activities
  7. in the protected store.
  8. Author:
  9. Scott Field (sfield) 27-Nov-96
  10. --*/
  11. #ifndef __MODULE_H__
  12. #define __MODULE_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. BOOL
  17. GetProcessPath(
  18. IN HANDLE hProcess,
  19. IN DWORD dwProcessId,
  20. IN LPWSTR ProcessName,
  21. IN OUT DWORD *cchProcessName,
  22. IN OUT DWORD_PTR *lpdwBaseAddress
  23. );
  24. BOOL
  25. EnumRemoteProcessModules(
  26. IN HANDLE hProcess,
  27. IN DWORD dwProcessId,
  28. OUT DWORD_PTR *lpdwBaseAddrClient
  29. );
  30. BOOL
  31. GetFileNameFromBaseAddr(
  32. IN HANDLE hProcess,
  33. IN DWORD dwProcessId,
  34. IN DWORD_PTR dwBaseAddr,
  35. OUT LPWSTR *lpszDirectCaller
  36. );
  37. #ifdef WIN95_LEGACY
  38. BOOL
  39. GetProcessIdFromPath95(
  40. IN LPCSTR szProcessPath,
  41. IN OUT DWORD *dwProcessId
  42. );
  43. BOOL
  44. GetBaseAddressModule95(
  45. IN DWORD dwProcessId,
  46. IN LPCSTR szImagePath,
  47. IN OUT DWORD_PTR *dwBaseAddress,
  48. IN OUT DWORD *dwUseCount
  49. );
  50. #endif // WIN95_LEGACY
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif // __MODULE_H__