home *** CD-ROM | disk | FTP | other *** search
- {*******************************************************}
- { }
- { Delphi Runtime Library }
- { Windows 3.1 API Interface Unit }
- { Stress function declarations }
- { }
- { Copyright (c) 1992 Borland International }
- { }
- {*******************************************************}
-
- unit Stress;
-
- interface
-
- uses WinTypes;
-
- {***** Simple types & common helper macros ********************************}
-
- { stuff for AllocDiskSpace() }
- const
- eds_Win = 1;
- eds_Cur = 2;
- eds_Temp = 3;
-
-
- { function prototypes }
- function AllocMem(dwLeft: Longint): Bool;
- procedure FreeAllMem;
- function AllocFileHandles(left: Integer): Integer;
- procedure UnAllocFileHandles;
- function GetFreeFileHandles: Integer;
- function AllocDiskSpace(lLeft: Longint; wDrive: Word): Integer;
- procedure UnAllocDiskSpace(wDrive: Word);
- function AllocUserMem(wContig: Word): Bool;
- procedure FreeAllUserMem;
- function AllocGDIMem(wLeft: Word): Bool;
- procedure FreeAllGDIMem;
-
- implementation
-