home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 7.ddi / WINCLUDE.ZIP / STRESS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  2.0 KB  |  60 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * stress.h -    Stress functions definitions                                  *
  4. *                                                                             *
  5. *               Version 1.0                                                   *
  6. *                                                                             *
  7. *******************************************************************************/
  8.  
  9. #ifndef __STRESS_H      /* prevent multiple includes */
  10. #define __STRESS_H
  11.  
  12. #ifndef __WINDOWS_H
  13. #include <windows.h>    /* <windows.h> must be included */
  14. #endif  /* __WINDOWS_H */
  15.  
  16. #ifndef RC_INVOKED
  17. #pragma option -a-      /* Assume byte packing throughout */
  18. #endif  /* RC_INVOKED */
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {            /* Assume C declarations for C++ */
  22. #endif  /* __cplusplus */
  23.  
  24. /****** Simple types & common helper macros *********************************/
  25.  
  26. /* If included with the 3.0 windows.h, define compatible aliases */
  27. #if !defined(WINVER) || (WINVER < 0x030a)
  28. #define UINT        WORD
  29. #define WINAPI      FAR PASCAL
  30. #endif  /* WIN3.0 */
  31.  
  32. /* stuff for AllocDiskSpace() */
  33. #define  EDS_WIN     1
  34. #define  EDS_CUR     2
  35. #define  EDS_TEMP    3
  36.  
  37.  
  38. /* function prototypes */
  39. BOOL    WINAPI AllocMem(DWORD);
  40. void    WINAPI FreeAllMem(void);
  41. int     WINAPI AllocFileHandles(int);
  42. void    WINAPI UnAllocFileHandles(void);
  43. int     WINAPI GetFreeFileHandles(void);
  44. int     WINAPI AllocDiskSpace(long,UINT);
  45. void    WINAPI UnAllocDiskSpace(UINT);
  46. BOOL    WINAPI AllocUserMem(UINT);
  47. void    WINAPI FreeAllUserMem(void);
  48. BOOL    WINAPI AllocGDIMem(UINT);
  49. void    WINAPI FreeAllGDIMem(void);
  50.  
  51. #ifdef __cplusplus
  52. }                       /* End of extern "C" { */
  53. #endif  /* __cplusplus */
  54.  
  55. #ifndef RC_INVOKED
  56. #pragma option -a.      /* Revert to default packing */
  57. #endif  /* RC_INVOKED */
  58.  
  59. #endif  /* __STRESS_H */
  60.