home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / INC.PAK / STRESS.H < prev    next >
Text File  |  1995-08-29  |  2KB  |  66 lines

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