stress.c 3.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * Copyright 1994 Erik Bos
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

19 20
#include <stdarg.h>

21
#include "windef.h"
22
#include "winbase.h"
23
#include "wine/windef16.h"
24
#include "wine/debug.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
25

26
WINE_DEFAULT_DEBUG_CHANNEL(stress);
Alexandre Julliard's avatar
Alexandre Julliard committed
27

28
/***********************************************************************
29
 *		AllocDiskSpace (STRESS.10)
30
 */
31
INT16 WINAPI AllocDiskSpace(LONG lLeft, UINT16 uDrive)
Alexandre Julliard's avatar
Alexandre Julliard committed
32
{
33
	FIXME("(%d, %ld) - stub\n",
Alexandre Julliard's avatar
Alexandre Julliard committed
34
		       uDrive, lLeft);
Alexandre Julliard's avatar
Alexandre Julliard committed
35 36 37 38

	return 1;
}

39
/***********************************************************************
40
 *		AllocFileHandles (STRESS.6)
41
 */
42
INT16 WINAPI AllocFileHandles(INT16 Left)
Alexandre Julliard's avatar
Alexandre Julliard committed
43
{
44
	TRACE("(%d) - stub\n", Left);
Alexandre Julliard's avatar
Alexandre Julliard committed
45 46 47 48 49 50 51

	if (Left < 0)
		return -1;
	else
		return 1;
}

52
/***********************************************************************
53
 *		AllocGDIMem (STRESS.14)
54
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
55
BOOL16 WINAPI AllocGDIMem(UINT16 uLeft)
Alexandre Julliard's avatar
Alexandre Julliard committed
56
{
57
	TRACE("(%d) - stub\n", uLeft);
Alexandre Julliard's avatar
Alexandre Julliard committed
58 59 60 61

	return 1;
}

62
/***********************************************************************
63
 *		AllocMem (STRESS.2)
64
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
65
BOOL16 WINAPI AllocMem(DWORD dwLeft)
Alexandre Julliard's avatar
Alexandre Julliard committed
66
{
67
	FIXME("(%ld) - stub\n", dwLeft);
Alexandre Julliard's avatar
Alexandre Julliard committed
68 69 70 71

	return 1;
}

72
/***********************************************************************
73
 *		AllocUserMem (STRESS.12)
74
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
75
BOOL16 WINAPI AllocUserMem(UINT16 uContig)
Alexandre Julliard's avatar
Alexandre Julliard committed
76
{
77
	TRACE("AllocUserMem %d\n", uContig);
Alexandre Julliard's avatar
Alexandre Julliard committed
78 79 80 81

	return 1;
}

82
/***********************************************************************
83
 *		FreeAllMem (STRESS.3)
84
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
85
void WINAPI FreeAllMem(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
86
{
87
	TRACE("FreeAllMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
88 89
}

90
/***********************************************************************
91
 *		FreeAllGDIMem (STRESS.15)
92
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
93
void WINAPI FreeAllGDIMem(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
94
{
95
	TRACE("FreeAllGDIMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
96 97
}

98
/***********************************************************************
99
 *		FreeAllUserMem (STRESS.13)
100
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
101
void WINAPI FreeAllUserMem(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
102
{
103
	TRACE("FreeAllUserMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
104 105
}

106
/***********************************************************************
107
 *		GetFreeFileHandles (STRESS.8)
108
 */
109
INT16 WINAPI GetFreeFileHandles(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
110
{
111
	TRACE("GetFreeFileHandles\n");
112
        return 256;  /* can't have more than 256 16-bit handles */
Alexandre Julliard's avatar
Alexandre Julliard committed
113 114
}

115
/***********************************************************************
116
 *		UnAllocDiskSpace (STRESS.11)
117
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
118
void WINAPI UnAllocDiskSpace(UINT16 drive)
Alexandre Julliard's avatar
Alexandre Julliard committed
119
{
120
	TRACE("UnAllocDiskSpace %d\n", drive);
Alexandre Julliard's avatar
Alexandre Julliard committed
121 122
}

123
/***********************************************************************
124
 *		UnAllocFileHandles (STRESS.7)
125
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
126
void WINAPI UnAllocFileHandles(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
127
{
128
	TRACE("GetFreeAllUserMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
129
}