Release 940912
[wine/multimedia.git] / misc / stress.c
blobe503ef9d7b18af060c2f7586f0fbe41f6eb259cb
1 #include <stdio.h>
2 #include <limits.h>
3 #include "windows.h"
4 #include "stress.h"
6 #define STRESS_DEBUG
8 int AllocDiskSpace(long lLeft, UINT uDrive)
10 #ifdef STRESS_DEBUG
11 fprintf(stderr, "stress.dll: AllocDiskSpace %d, %ld\n", uDrive, lLeft);
12 #endif
14 return 1;
17 int AllocFileHandles(int Left)
19 #ifdef STRESS_DEBUG
20 fprintf(stderr, "stress.dll: AllocFileHandles %d\n", Left);
21 #endif
23 if (Left < 0)
24 return -1;
25 else
26 return 1;
29 BOOL AllocGDIMem(UINT uLeft)
31 #ifdef STRESS_DEBUG
32 fprintf(stderr, "stress.dll: AllocGDIMem %d\n", uLeft);
33 #endif
35 return 1;
38 BOOL AllocMem(DWORD dwLeft)
40 #ifdef STRESS_DEBUG
41 fprintf(stderr, "stress.dll: AllocMem %ld\n", dwLeft);
42 #endif
44 return 1;
47 BOOL AllocUserMem(UINT uContig)
49 #ifdef STRESS_DEBUG
50 fprintf(stderr, "stress.dll: AllocUserMem %d\n", uContig);
51 #endif
53 return 1;
56 void FreeAllMem(void)
58 #ifdef STRESS_DEBUG
59 fprintf(stderr, "stress.dll: FreeAllMem\n");
60 #endif
63 void FreeAllGDIMem(void)
65 #ifdef STRESS_DEBUG
66 fprintf(stderr, "stress.dll: FreeAllGDIMem\n");
67 #endif
70 void FreeAllUserMem(void)
72 #ifdef STRESS_DEBUG
73 fprintf(stderr, "stress.dll: FreeAllUserMem\n");
74 #endif
77 void GetFreeAllUserMem(void)
79 #ifdef STRESS_DEBUG
80 fprintf(stderr, "stress.dll: GetFreeAllUserMem\n");
81 #endif
84 int GetFreeFileHandles(void)
86 #ifdef STRESS_DEBUG
87 fprintf(stderr, "stress.dll: GetFreeFileHandles\n");
88 #endif
90 #ifndef OPEN_MAX
91 return _POSIX_OPEN_MAX;
92 #else
93 return OPEN_MAX;
94 #endif
97 void UnAllocDiskSpace(UINT drive)
99 #ifdef STRESS_DEBUG
100 fprintf(stderr, "stress.dll: UnAllocDiskSpace %d\n", drive);
101 #endif
104 void UnAllocFileHandles(void)
106 #ifdef STRESS_DEBUG
107 fprintf(stderr, "stress.dll: GetFreeAllUserMem\n");
108 #endif