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.

56 lines
1.9 KiB

  1. /*****************************************************************************\
  2. * *
  3. * stress.h - Stress functions definitions *
  4. * *
  5. * Version 1.0 *
  6. * *
  7. * Copyright (c) 1992, Microsoft Corp. All rights reserved. *
  8. * *
  9. *******************************************************************************/
  10. #ifndef _INC_STRESS
  11. #define _INC_STRESS
  12. #ifndef RC_INVOKED
  13. #pragma pack(1) /* Assume byte packing throughout */
  14. #endif /* RC_INVOKED */
  15. #ifdef __cplusplus
  16. extern "C" { /* Assume C declarations for C++ */
  17. #endif /* __cplusplus */
  18. /****** Simple types & common helper macros *********************************/
  19. #ifndef _INC_WINDOWS /* If included with 3.0 headers... */
  20. #define UINT WORD
  21. #define WINAPI FAR PASCAL
  22. #endif /* _INC_WINDOWS */
  23. /* stuff for AllocDiskSpace() */
  24. #define EDS_WIN 1
  25. #define EDS_CUR 2
  26. #define EDS_TEMP 3
  27. /* function prototypes */
  28. BOOL WINAPI AllocMem(DWORD);
  29. void WINAPI FreeAllMem(void);
  30. int WINAPI AllocFileHandles(int);
  31. void WINAPI UnAllocFileHandles(void);
  32. int WINAPI GetFreeFileHandles(void);
  33. int WINAPI AllocDiskSpace(long,UINT);
  34. void WINAPI UnAllocDiskSpace(UINT);
  35. BOOL WINAPI AllocUserMem(UINT);
  36. void WINAPI FreeAllUserMem(void);
  37. BOOL WINAPI AllocGDIMem(UINT);
  38. void WINAPI FreeAllGDIMem(void);
  39. #ifdef __cplusplus
  40. }
  41. #endif /* __cplusplus */
  42. #ifndef RC_INVOKED
  43. #pragma pack()
  44. #endif /* RC_INVOKED */
  45. #endif /* _INC_STRESS */