stress.c 3.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 18
 */

19 20
#include <stdarg.h>

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

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

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

	return 1;
}

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

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

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

60
/***********************************************************************
61
 *		AllocMem (STRESS.2)
62
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
63
BOOL16 WINAPI AllocMem(DWORD dwLeft)
Alexandre Julliard's avatar
Alexandre Julliard committed
64
{
65
	FIXME("(%d) - stub\n", dwLeft);
66
        return TRUE;
Alexandre Julliard's avatar
Alexandre Julliard committed
67 68
}

69
/***********************************************************************
70
 *		AllocUserMem (STRESS.12)
71
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
72
BOOL16 WINAPI AllocUserMem(UINT16 uContig)
Alexandre Julliard's avatar
Alexandre Julliard committed
73
{
74
	TRACE("AllocUserMem %d\n", uContig);
75
        return TRUE;
Alexandre Julliard's avatar
Alexandre Julliard committed
76 77
}

78
/***********************************************************************
79
 *		FreeAllMem (STRESS.3)
80
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
81
void WINAPI FreeAllMem(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
82
{
83
	TRACE("FreeAllMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
84 85
}

86
/***********************************************************************
87
 *		FreeAllGDIMem (STRESS.15)
88
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
89
void WINAPI FreeAllGDIMem(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
90
{
91
	TRACE("FreeAllGDIMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
92 93
}

94
/***********************************************************************
95
 *		FreeAllUserMem (STRESS.13)
96
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
97
void WINAPI FreeAllUserMem(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
98
{
99
	TRACE("FreeAllUserMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
100 101
}

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

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

119
/***********************************************************************
120
 *		UnAllocFileHandles (STRESS.7)
121
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
122
void WINAPI UnAllocFileHandles(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
123
{
124
	TRACE("GetFreeAllUserMem\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
125
}