#include <stdio.h>
#include <limits.h>
#include "windows.h"
#include "stress.h"
#define STRESS_DEBUG
int AllocDiskSpace(long lLeft, UINT uDrive)
{
#ifdef STRESS_DEBUG
fprintf(stderr, "stress.dll: AllocDiskSpace %d, %ld\n", uDrive, lLeft);
#endif
return 1;
}
int AllocFileHandles(int Left)
fprintf(stderr, "stress.dll: AllocFileHandles %d\n", Left);
if (Left < 0)
return -1;
else
BOOL AllocGDIMem(UINT uLeft)
fprintf(stderr, "stress.dll: AllocGDIMem %d\n", uLeft);
BOOL AllocMem(DWORD dwLeft)
fprintf(stderr, "stress.dll: AllocMem %ld\n", dwLeft);
BOOL AllocUserMem(UINT uContig)
fprintf(stderr, "stress.dll: AllocUserMem %d\n", uContig);
void FreeAllMem(void)
fprintf(stderr, "stress.dll: FreeAllMem\n");
void FreeAllGDIMem(void)
fprintf(stderr, "stress.dll: FreeAllGDIMem\n");
void FreeAllUserMem(void)
fprintf(stderr, "stress.dll: FreeAllUserMem\n");
void GetFreeAllUserMem(void)
fprintf(stderr, "stress.dll: GetFreeAllUserMem\n");
int GetFreeFileHandles(void)
fprintf(stderr, "stress.dll: GetFreeFileHandles\n");
#ifndef OPEN_MAX
return _POSIX_OPEN_MAX;
#else
return OPEN_MAX;
void UnAllocDiskSpace(UINT drive)
fprintf(stderr, "stress.dll: UnAllocDiskSpace %d\n", drive);
void UnAllocFileHandles(void)