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.

62 lines
1.4 KiB

  1. //
  2. // Universal Resource Consumer: Just an innocent stress program
  3. // Copyright (c) Microsoft Corporation, 1997, 1998, 1999
  4. //
  5. //
  6. // header: consume.hxx
  7. // author: silviuc
  8. // created: Fri Apr 10 15:21:53 1998
  9. //
  10. #ifndef _CONSUME_HXX_INCLUDED_
  11. #define _CONSUME_HXX_INCLUDED_
  12. //
  13. // Constant(s):
  14. //
  15. // CONSUMER_PHYSICAL_MEMORY
  16. // CONSUMER_PAGE_FILE
  17. // CONSUMER_NONPAGED_POOL
  18. // CONSUMER_PAGED_POOL
  19. // CONSUMER_DISK_SPACE
  20. //
  21. // Description:
  22. //
  23. // These are the possible consumer types.
  24. // Note. Constants are not used right now.
  25. //
  26. #define CONSUMER_PHYSICAL_MEMORY 0x0001
  27. #define CONSUMER_PAGE_FILE 0x0002
  28. #define CONSUMER_NONPAGED_POOL 0x0004
  29. #define CONSUMER_PAGED_POOL 0x0008
  30. #define CONSUMER_DISK_SPACE 0x0010
  31. #define CONSUMER_CPU_TIME 0x0020
  32. //
  33. // Function:
  34. //
  35. // CreateBabyConsumer
  36. //
  37. // Description:
  38. //
  39. // This function calls CreateProcess() with the command line
  40. // specified. This is used by some consumers that cannot eat
  41. // completely a resource from only one process. Typical examples
  42. // are physical memory and page file. Essentially in one process
  43. // you can consume up to 2Gb therefore we need more processes
  44. // for machines that have more than 2Gb of RAM.
  45. //
  46. BOOL
  47. CreateBabyConsumer (
  48. LPTSTR CommandLine);
  49. // ...
  50. #endif // #ifndef _CONSUME_HXX_INCLUDED_
  51. //
  52. // end of header: consume.hxx
  53. //