Release 980301
[wine] / misc / stress.c
1 #include <stdio.h>
2 #include <limits.h>
3 #include "windows.h"
4 #include "stress.h"
5 #include "debug.h"
6
7
8 int WINAPI AllocDiskSpace(long lLeft, UINT16 uDrive)
9 {
10         dprintf_fixme(stress, "stress.dll: AllocDiskSpace(%d, %ld) - stub\n", 
11                        uDrive, lLeft);
12
13         return 1;
14 }
15
16 int WINAPI AllocFileHandles(int Left)
17 {
18         dprintf_info(stress, "stress.dll: AllocFileHandles(%d) - stub\n", Left);
19
20         if (Left < 0)
21                 return -1;
22         else
23                 return 1;
24 }
25
26 BOOL16 WINAPI AllocGDIMem(UINT16 uLeft)
27 {
28         dprintf_info(stress, "stress.dll: AllocGDIMem(%d) - stub\n", uLeft);
29
30         return 1;
31 }
32
33 BOOL16 WINAPI AllocMem(DWORD dwLeft)
34 {
35         dprintf_fixme(stress, "stress.dll: AllocMem(%ld) - stub\n", dwLeft);
36
37         return 1;
38 }
39
40 BOOL16 WINAPI AllocUserMem(UINT16 uContig)
41 {
42         dprintf_info(stress, "stress.dll: AllocUserMem %d\n", uContig);
43
44         return 1;
45 }
46
47 void WINAPI FreeAllMem(void)
48 {
49         dprintf_info(stress, "stress.dll: FreeAllMem\n");
50 }
51
52 void WINAPI FreeAllGDIMem(void)
53 {
54         dprintf_info(stress, "stress.dll: FreeAllGDIMem\n");
55 }
56
57 void WINAPI FreeAllUserMem(void)
58 {
59         dprintf_info(stress, "stress.dll: FreeAllUserMem\n");
60 }
61
62 void WINAPI GetFreeAllUserMem(void)
63 {
64        dprintf_info(stress, "stress.dll: GetFreeAllUserMem\n");
65 }
66
67 int WINAPI GetFreeFileHandles(void)
68 {
69         dprintf_info(stress, "stress.dll: GetFreeFileHandles\n");
70
71 #ifndef OPEN_MAX
72         return _POSIX_OPEN_MAX;
73 #else
74         return OPEN_MAX;
75 #endif
76 }
77
78 void WINAPI UnAllocDiskSpace(UINT16 drive)
79 {
80         dprintf_info(stress, "stress.dll: UnAllocDiskSpace %d\n", drive);
81 }
82
83 void WINAPI UnAllocFileHandles(void)
84 {
85         dprintf_info(stress, "stress.dll: GetFreeAllUserMem\n");
86 }