Source code of Windows XP (NT5)
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.

63 lines
1.2 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1999
  3. All rights reserved
  4. ***************************************************************************/
  5. //
  6. // Defines for moving pointers to proper alignment within a buffer
  7. //
  8. #define ALIGN_DOWN_POINTER(address, type) \
  9. ((PVOID)((ULONG_PTR)(address) & ~((ULONG_PTR)sizeof(type) - 1)))
  10. #define ALIGN_UP_POINTER(address, type) \
  11. (ALIGN_DOWN_POINTER(((ULONG_PTR)(address) + sizeof(type) - 1), type))
  12. //
  13. // Routines defined in the lib
  14. //
  15. DWORD
  16. RCCLibInit(
  17. OUT PVOID *GlobalBuffer,
  18. OUT PULONG GlobalBufferSize
  19. );
  20. VOID
  21. RCCLibExit(
  22. IN PVOID GlobalBuffer,
  23. IN ULONG GlobalBufferSize
  24. );
  25. DWORD
  26. RCCLibIncreaseMemory(
  27. OUT PVOID *GlobalBuffer,
  28. OUT PULONG GlobalBufferCurrentSize
  29. );
  30. DWORD
  31. RCCLibGetTListInfo(
  32. OUT PRCC_RSP_TLIST ResponseBuffer,
  33. IN LONG ResponseBufferSize,
  34. OUT PULONG ResponseDataSize
  35. );
  36. DWORD
  37. RCCLibKillProcess(
  38. DWORD Pid
  39. );
  40. DWORD
  41. RCCLibLowerProcessPriority(
  42. DWORD Pid
  43. );
  44. DWORD
  45. RCCLibLimitProcessMemory(
  46. DWORD ProcessId,
  47. DWORD MemoryLimit
  48. );