mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 03:04:22 +00:00
Split up some stubs into their own files.
svn path=/trunk/; revision=3068
This commit is contained in:
parent
e019c02170
commit
fd2a5c35a4
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile_rex,v 1.21 2002/01/13 22:52:07 dwelch Exp $
|
# $Id: Makefile,v 1.1 2002/06/13 20:36:39 dwelch Exp $
|
||||||
|
|
||||||
PATH_TO_TOP = ../..
|
PATH_TO_TOP = ../..
|
||||||
|
|
||||||
|
@ -20,6 +20,11 @@ include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
include $(TOOLS_PATH)/helper.mk
|
include $(TOOLS_PATH)/helper.mk
|
||||||
|
|
||||||
|
CONTROLS_OBJECTS = \
|
||||||
|
controls/combobox.o \
|
||||||
|
controls/listbox.o \
|
||||||
|
controls/scrollbar.o
|
||||||
|
|
||||||
MISC_OBJECTS = \
|
MISC_OBJECTS = \
|
||||||
misc/desktop.o \
|
misc/desktop.o \
|
||||||
misc/dllmain.o \
|
misc/dllmain.o \
|
||||||
|
@ -27,17 +32,40 @@ MISC_OBJECTS = \
|
||||||
misc/stubs.o \
|
misc/stubs.o \
|
||||||
misc/win32k.o \
|
misc/win32k.o \
|
||||||
misc/winsta.o \
|
misc/winsta.o \
|
||||||
misc/resources.o
|
misc/resources.o \
|
||||||
|
misc/dde.o \
|
||||||
|
misc/display.o \
|
||||||
|
misc/object.o \
|
||||||
|
misc/timer.o
|
||||||
|
|
||||||
WINDOWS_OBJECTS = \
|
WINDOWS_OBJECTS = \
|
||||||
windows/class.o \
|
windows/class.o \
|
||||||
windows/message.o \
|
windows/message.o \
|
||||||
windows/window.o \
|
windows/window.o \
|
||||||
windows/defwnd.o
|
windows/defwnd.o \
|
||||||
|
windows/accel.o \
|
||||||
|
windows/bitmap.o \
|
||||||
|
windows/clipboard.o \
|
||||||
|
windows/cursor.o \
|
||||||
|
windows/dc.o \
|
||||||
|
windows/dialog.o \
|
||||||
|
windows/draw.o \
|
||||||
|
windows/font.o \
|
||||||
|
windows/hook.o \
|
||||||
|
windows/icon.o \
|
||||||
|
windows/input.o \
|
||||||
|
windows/mdi.o \
|
||||||
|
windows/menu.o \
|
||||||
|
windows/messagebox.o \
|
||||||
|
windows/paint.o \
|
||||||
|
windows/prop.o \
|
||||||
|
windows/rect.o \
|
||||||
|
windows/text.o
|
||||||
|
|
||||||
OBJECTS = \
|
OBJECTS = \
|
||||||
$(MISC_OBJECTS) \
|
$(MISC_OBJECTS) \
|
||||||
$(WINDOWS_OBJECTS)
|
$(WINDOWS_OBJECTS) \
|
||||||
|
$(CONTROLS_OBJECTS)
|
||||||
|
|
||||||
$(TARGET_NAME).o: $(OBJECTS)
|
$(TARGET_NAME).o: $(OBJECTS)
|
||||||
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
|
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
|
42
reactos/lib/user32/controls/combobox.c
Normal file
42
reactos/lib/user32/controls/combobox.c
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: combobox.c,v 1.1 2002/06/13 20:36:39 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/controls/combobox.c
|
||||||
|
* PURPOSE: Combo box
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetComboBoxInfo(HWND hwndCombo,
|
||||||
|
PCOMBOBOXINFO pcbi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
41
reactos/lib/user32/controls/listbox.c
Normal file
41
reactos/lib/user32/controls/listbox.c
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: listbox.c,v 1.6 2002/06/13 20:36:39 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/controls/listbox.c
|
||||||
|
* PURPOSE: List box
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
DWORD STDCALL
|
||||||
|
GetListBoxInfo(HWND hwnd)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
103
reactos/lib/user32/controls/scrollbar.c
Normal file
103
reactos/lib/user32/controls/scrollbar.c
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: scrollbar.c,v 1.1 2002/06/13 20:36:39 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/controls/scrollbar.c
|
||||||
|
* PURPOSE: Scroll bar
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetScrollBarInfo(HWND hwnd,
|
||||||
|
LONG idObject,
|
||||||
|
PSCROLLBARINFO psbi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetScrollInfo(HWND hwnd,
|
||||||
|
int fnBar,
|
||||||
|
LPSCROLLINFO lpsi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
GetScrollPos(HWND hWnd,
|
||||||
|
int nBar)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetScrollRange(HWND hWnd,
|
||||||
|
int nBar,
|
||||||
|
LPINT lpMinPos,
|
||||||
|
LPINT lpMaxPos)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
SetScrollInfo(HWND hwnd,
|
||||||
|
int fnBar,
|
||||||
|
LPCSCROLLINFO lpsi,
|
||||||
|
WINBOOL fRedraw)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
SetScrollPos(HWND hWnd,
|
||||||
|
int nBar,
|
||||||
|
int nPos,
|
||||||
|
WINBOOL bRedraw)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
SetScrollRange(HWND hWnd,
|
||||||
|
int nBar,
|
||||||
|
int nMinPos,
|
||||||
|
int nMaxPos,
|
||||||
|
WINBOOL bRedraw)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
ShowScrollBar(HWND hWnd,
|
||||||
|
int wBar,
|
||||||
|
WINBOOL bShow)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
|
@ -63,6 +63,8 @@ extern DWORD DebugTraceLevel;
|
||||||
#define CHECKPOINT \
|
#define CHECKPOINT \
|
||||||
D(DEBUG_CHECK, ("\n"));
|
D(DEBUG_CHECK, ("\n"));
|
||||||
|
|
||||||
|
#define DPRINT(X...) D(DEBUG_CHECK, (X))
|
||||||
|
|
||||||
#define CP CHECKPOINT
|
#define CP CHECKPOINT
|
||||||
|
|
||||||
#endif /* __DEBUG_H */
|
#endif /* __DEBUG_H */
|
||||||
|
|
|
@ -8,3 +8,7 @@
|
||||||
#include <win32k/win32k.h>
|
#include <win32k/win32k.h>
|
||||||
|
|
||||||
extern HANDLE ProcessHeap;
|
extern HANDLE ProcessHeap;
|
||||||
|
VOID
|
||||||
|
User32FreeHeap(PVOID Block);
|
||||||
|
PVOID
|
||||||
|
User32AllocHeap(ULONG Size);
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
BASE_CFLAGS = -g -I../../include
|
|
||||||
all: user32.exe
|
|
||||||
|
|
||||||
INTERNAL_OBJECTS = internal/menu.o internal/heapdup.o internal/nc.o\
|
|
||||||
internal/win.o internal/dce.o internal/msg.o internal/queue.o\
|
|
||||||
internal/signal.o internal/event.o internal/timer.o internal/region.o\
|
|
||||||
internal/text.o internal/defwnd.o internal/paint.o internal/uitools.o\
|
|
||||||
internal/dialog.o internal/winpos.o
|
|
||||||
|
|
||||||
MISC_OBJECTS = misc/main.o misc/sprintf.o misc/dllmain.o misc/string.o misc/sysmetr.o misc/winstat.o\
|
|
||||||
misc/bitmap.o misc/cursor.o misc/vk.o misc/stubs.o misc/stubsa.o misc/stubsw.o
|
|
||||||
|
|
||||||
|
|
||||||
WINDOWS_OBJECTS = windows/wndproc.o windows/win.o windows/hook.o windows/spy.o\
|
|
||||||
windows/queue.o windows/winpos.o windows/class.o windows/dc.o\
|
|
||||||
windows/timer.o windows/rect.o windows/msg.o windows/input.o windows/property.o\
|
|
||||||
windows/focus.o windows/paint.o windows/msgbox.o windows/dialog.o\
|
|
||||||
windows/scroll.o windows/defdlg.o
|
|
||||||
|
|
||||||
GRAPHICS_OBJECTS = graphics/rect.o graphics/caret.o graphics/text.o graphics/syscol.o graphics/fill.o\
|
|
||||||
graphics/draw.o graphics/icon.o
|
|
||||||
|
|
||||||
CONTROLS_OBJECTS = controls/button.o controls/combo.o controls/edit.o controls/icontitle.o controls/listbox.o\
|
|
||||||
controls/widgets.o controls/menu.o controls/scroll.o controls/static.o
|
|
||||||
|
|
||||||
RESOURCE_OBJECTS = resources/sysres.o
|
|
||||||
|
|
||||||
RESOURCE_OBJECT = user32.coff
|
|
||||||
|
|
||||||
OBJECTS = $(MISC_OBJECTS) $(INTERNAL_OBJECTS) $(GRAPHICS_OBJECTS) $(RESOURCE_OBJECTS) $(RESOURCE_OBJECT)\
|
|
||||||
$(CONTROLS_OBJECTS) $(WINDOWS_OBJECTS)
|
|
||||||
|
|
||||||
user32.coff: user32.rc ../../include/reactos/resource.h
|
|
||||||
windres user32.rc user32.coff
|
|
||||||
|
|
||||||
user32.exe: $(OBJECTS)
|
|
||||||
$(CC) $(OBJECTS) -lkernel32 -lgdi32 -lcrtdll -o user32.exe
|
|
||||||
|
|
||||||
dummy:
|
|
||||||
|
|
||||||
include ../../Rules.mak
|
|
332
reactos/lib/user32/misc/dde.c
Normal file
332
reactos/lib/user32/misc/dde.c
Normal file
|
@ -0,0 +1,332 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: dde.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/misc/dde.c
|
||||||
|
* PURPOSE: DDE
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeAbandonTransaction(DWORD idInst,
|
||||||
|
HCONV hConv,
|
||||||
|
DWORD idTransaction)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPBYTE STDCALL
|
||||||
|
DdeAccessData(HDDEDATA hData,
|
||||||
|
LPDWORD pcbDataSize)
|
||||||
|
{
|
||||||
|
return (LPBYTE)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HDDEDATA STDCALL
|
||||||
|
DdeAddData(HDDEDATA hData,
|
||||||
|
LPBYTE pSrc,
|
||||||
|
DWORD cb,
|
||||||
|
DWORD cbOff)
|
||||||
|
{
|
||||||
|
return (HDDEDATA)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HDDEDATA STDCALL
|
||||||
|
DdeClientTransaction(LPBYTE pData,
|
||||||
|
DWORD cbData,
|
||||||
|
HCONV hConv,
|
||||||
|
HSZ hszItem,
|
||||||
|
UINT wFmt,
|
||||||
|
UINT wType,
|
||||||
|
DWORD dwTimeout,
|
||||||
|
LPDWORD pdwResult)
|
||||||
|
{
|
||||||
|
return (HDDEDATA)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
DdeCmpStringHandles(HSZ hsz1,
|
||||||
|
HSZ hsz2)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCONV STDCALL
|
||||||
|
DdeConnect(DWORD idInst,
|
||||||
|
HSZ hszService,
|
||||||
|
HSZ hszTopic,
|
||||||
|
PCONVCONTEXT pCC)
|
||||||
|
{
|
||||||
|
return (HCONV)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCONVLIST STDCALL
|
||||||
|
DdeConnectList(DWORD idInst,
|
||||||
|
HSZ hszService,
|
||||||
|
HSZ hszTopic,
|
||||||
|
HCONVLIST hConvList,
|
||||||
|
PCONVCONTEXT pCC)
|
||||||
|
{
|
||||||
|
return (HCONVLIST)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HDDEDATA STDCALL
|
||||||
|
DdeCreateDataHandle(DWORD idInst,
|
||||||
|
LPBYTE pSrc,
|
||||||
|
DWORD cb,
|
||||||
|
DWORD cbOff,
|
||||||
|
HSZ hszItem,
|
||||||
|
UINT wFmt,
|
||||||
|
UINT afCmd)
|
||||||
|
{
|
||||||
|
return (HDDEDATA)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HSZ STDCALL
|
||||||
|
DdeCreateStringHandleA(DWORD idInst,
|
||||||
|
LPSTR psz,
|
||||||
|
int iCodePage)
|
||||||
|
{
|
||||||
|
return (HSZ)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HSZ STDCALL
|
||||||
|
DdeCreateStringHandleW(DWORD idInst,
|
||||||
|
LPWSTR psz,
|
||||||
|
int iCodePage)
|
||||||
|
{
|
||||||
|
return (HSZ)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeDisconnect(HCONV hConv)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeDisconnectList(HCONVLIST hConvList)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeEnableCallback(DWORD idInst,
|
||||||
|
HCONV hConv,
|
||||||
|
UINT wCmd)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeFreeDataHandle(HDDEDATA hData)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
DdeFreeStringHandle(DWORD idInst,
|
||||||
|
HSZ hsz)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD STDCALL
|
||||||
|
DdeGetData(HDDEDATA hData,
|
||||||
|
LPBYTE pDst,
|
||||||
|
DWORD cbMax,
|
||||||
|
DWORD cbOff)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
DdeGetLastError(DWORD idInst)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeImpersonateClient(HCONV hConv)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
DdeInitializeA(LPDWORD pidInst,
|
||||||
|
PFNCALLBACK pfnCallback,
|
||||||
|
DWORD afCmd,
|
||||||
|
DWORD ulRes)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
DdeInitializeW(LPDWORD pidInst,
|
||||||
|
PFNCALLBACK pfnCallback,
|
||||||
|
DWORD afCmd,
|
||||||
|
DWORD ulRes)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeKeepStringHandle(DWORD idInst,
|
||||||
|
HSZ hsz)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
HDDEDATA STDCALL
|
||||||
|
DdeNameService(DWORD idInst,
|
||||||
|
HSZ hsz1,
|
||||||
|
HSZ hsz2,
|
||||||
|
UINT afCmd)
|
||||||
|
{
|
||||||
|
return (HDDEDATA)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdePostAdvise(DWORD idInst,
|
||||||
|
HSZ hszTopic,
|
||||||
|
HSZ hszItem)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
DdeQueryConvInfo(HCONV hConv,
|
||||||
|
DWORD idTransaction,
|
||||||
|
PCONVINFO pConvInfo)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCONV STDCALL
|
||||||
|
DdeQueryNextServer(HCONVLIST hConvList,
|
||||||
|
HCONV hConvPrev)
|
||||||
|
{
|
||||||
|
return (HCONV)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD STDCALL
|
||||||
|
DdeQueryStringA(DWORD idInst,
|
||||||
|
HSZ hsz,
|
||||||
|
LPSTR psz,
|
||||||
|
DWORD cchMax,
|
||||||
|
int iCodePage)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD STDCALL
|
||||||
|
DdeQueryStringW(DWORD idInst,
|
||||||
|
HSZ hsz,
|
||||||
|
LPWSTR psz,
|
||||||
|
DWORD cchMax,
|
||||||
|
int iCodePage)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCONV STDCALL
|
||||||
|
DdeReconnect(HCONV hConv)
|
||||||
|
{
|
||||||
|
return (HCONV)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeSetQualityOfService(HWND hwndClient,
|
||||||
|
CONST SECURITY_QUALITY_OF_SERVICE *pqosNew,
|
||||||
|
PSECURITY_QUALITY_OF_SERVICE pqosPrev)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeSetUserHandle(HCONV hConv,
|
||||||
|
DWORD id,
|
||||||
|
DWORD_PTR hUser)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeUnaccessData(HDDEDATA hData)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DdeUninitialize(DWORD idInst)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
FreeDDElParam(UINT msg,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
ImpersonateDdeClientWindow(HWND hWndClient,
|
||||||
|
HWND hWndServer)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPARAM STDCALL
|
||||||
|
PackDDElParam(UINT msg,
|
||||||
|
UINT_PTR uiLo,
|
||||||
|
UINT_PTR uiHi)
|
||||||
|
{
|
||||||
|
return (LPARAM)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPARAM STDCALL
|
||||||
|
ReuseDDElParam(LPARAM lParam,
|
||||||
|
UINT msgIn,
|
||||||
|
UINT msgOut,
|
||||||
|
UINT_PTR uiLo,
|
||||||
|
UINT_PTR uiHi)
|
||||||
|
{
|
||||||
|
return (LPARAM)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
UnpackDDElParam(UINT msg,
|
||||||
|
LPARAM lParam,
|
||||||
|
PUINT_PTR puiLo,
|
||||||
|
PUINT_PTR puiHi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
167
reactos/lib/user32/misc/display.c
Normal file
167
reactos/lib/user32/misc/display.c
Normal file
|
@ -0,0 +1,167 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: display.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/misc/dde.c
|
||||||
|
* PURPOSE: DDE
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
EnumDisplayDevicesA(
|
||||||
|
LPCSTR lpDevice,
|
||||||
|
DWORD iDevNum,
|
||||||
|
PDISPLAY_DEVICE lpDisplayDevice,
|
||||||
|
DWORD dwFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnumDisplayDevicesW(
|
||||||
|
LPCWSTR lpDevice,
|
||||||
|
DWORD iDevNum,
|
||||||
|
PDISPLAY_DEVICE lpDisplayDevice,
|
||||||
|
DWORD dwFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnumDisplayMonitors(
|
||||||
|
HDC hdc,
|
||||||
|
LPRECT lprcClip,
|
||||||
|
MONITORENUMPROC lpfnEnum,
|
||||||
|
LPARAM dwData)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnumDisplaySettingsA(
|
||||||
|
LPCSTR lpszDeviceName,
|
||||||
|
DWORD iModeNum,
|
||||||
|
LPDEVMODEA lpDevMode)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnumDisplaySettingsExA(
|
||||||
|
LPCSTR lpszDeviceName,
|
||||||
|
DWORD iModeNum,
|
||||||
|
LPDEVMODEW lpDevMode,
|
||||||
|
DWORD dwFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnumDisplaySettingsExW(
|
||||||
|
LPCWSTR lpszDeviceName,
|
||||||
|
DWORD iModeNum,
|
||||||
|
LPDEVMODEA lpDevMode,
|
||||||
|
DWORD dwFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnumDisplaySettingsW(
|
||||||
|
LPCWSTR lpszDeviceName,
|
||||||
|
DWORD iModeNum,
|
||||||
|
LPDEVMODEW lpDevMode)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMonitorInfoA(
|
||||||
|
HMONITOR hMonitor,
|
||||||
|
LPMONITORINFO lpmi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMonitorInfoW(
|
||||||
|
HMONITOR hMonitor,
|
||||||
|
LPMONITORINFO lpmi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
ChangeDisplaySettingsA(
|
||||||
|
LPDEVMODEA lpDevMode,
|
||||||
|
DWORD dwflags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
ChangeDisplaySettingsExA(
|
||||||
|
LPCSTR lpszDeviceName,
|
||||||
|
LPDEVMODEA lpDevMode,
|
||||||
|
HWND hwnd,
|
||||||
|
DWORD dwflags,
|
||||||
|
LPVOID lParam)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
ChangeDisplaySettingsExW(
|
||||||
|
LPCWSTR lpszDeviceName,
|
||||||
|
LPDEVMODEW lpDevMode,
|
||||||
|
HWND hwnd,
|
||||||
|
DWORD dwflags,
|
||||||
|
LPVOID lParam)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
ChangeDisplaySettingsW(
|
||||||
|
LPDEVMODEW lpDevMode,
|
||||||
|
DWORD dwflags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -15,6 +15,34 @@ VOID STDCALL KeBugCheck (ULONG BugCheckCode) {}
|
||||||
HANDLE ProcessHeap;
|
HANDLE ProcessHeap;
|
||||||
HWINSTA ProcessWindowStation;
|
HWINSTA ProcessWindowStation;
|
||||||
|
|
||||||
|
PVOID
|
||||||
|
User32AllocHeap(ULONG Size)
|
||||||
|
{
|
||||||
|
return(RtlAllocateHeap(ProcessHeap, HEAP_ZERO_MEMORY, Size));
|
||||||
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
User32FreeHeap(PVOID Block)
|
||||||
|
{
|
||||||
|
RtlFreeHeap(ProcessHeap, 0, Block);
|
||||||
|
}
|
||||||
|
|
||||||
|
PWSTR
|
||||||
|
User32ConvertString(PCSTR String)
|
||||||
|
{
|
||||||
|
ANSI_STRING InString;
|
||||||
|
UNICODE_STRING OutString;
|
||||||
|
RtlInitAnsiString(&InString, String);
|
||||||
|
RtlAnsiStringToUnicodeString(&OutString, &InString, TRUE);
|
||||||
|
return(OutString.Buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
User32FreeString(PWSTR String)
|
||||||
|
{
|
||||||
|
RtlFreeHeap(RtlGetProcessHeap(), 0, String);
|
||||||
|
}
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
Init(VOID)
|
Init(VOID)
|
||||||
{
|
{
|
||||||
|
|
89
reactos/lib/user32/misc/object.c
Normal file
89
reactos/lib/user32/misc/object.c
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: object.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/misc/dde.c
|
||||||
|
* PURPOSE: DDE
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetUserObjectInformationA(
|
||||||
|
HANDLE hObj,
|
||||||
|
int nIndex,
|
||||||
|
PVOID pvInfo,
|
||||||
|
DWORD nLength)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetUserObjectInformationW(
|
||||||
|
HANDLE hObj,
|
||||||
|
int nIndex,
|
||||||
|
PVOID pvInfo,
|
||||||
|
DWORD nLength)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
UserHandleGrantAccess(
|
||||||
|
HANDLE hUserHandle,
|
||||||
|
HANDLE hJob,
|
||||||
|
WINBOOL bGrant)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetUserObjectInformationA(
|
||||||
|
HANDLE hObj,
|
||||||
|
int nIndex,
|
||||||
|
PVOID pvInfo,
|
||||||
|
DWORD nLength,
|
||||||
|
LPDWORD lpnLengthNeeded)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetUserObjectInformationW(
|
||||||
|
HANDLE hObj,
|
||||||
|
int nIndex,
|
||||||
|
PVOID pvInfo,
|
||||||
|
DWORD nLength,
|
||||||
|
LPDWORD lpnLengthNeeded)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
File diff suppressed because it is too large
Load diff
54
reactos/lib/user32/misc/timer.c
Normal file
54
reactos/lib/user32/misc/timer.c
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: timer.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/misc/dde.c
|
||||||
|
* PURPOSE: DDE
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
KillTimer(
|
||||||
|
HWND hWnd,
|
||||||
|
UINT_PTR uIDEvent)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
UINT_PTR
|
||||||
|
STDCALL
|
||||||
|
SetTimer(
|
||||||
|
HWND hWnd,
|
||||||
|
UINT_PTR nIDEvent,
|
||||||
|
UINT uElapse,
|
||||||
|
TIMERPROC lpTimerFunc)
|
||||||
|
{
|
||||||
|
return (UINT_PTR)0;
|
||||||
|
}
|
126
reactos/lib/user32/windows/accel.c
Normal file
126
reactos/lib/user32/windows/accel.c
Normal file
|
@ -0,0 +1,126 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: accel.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
CopyAcceleratorTableA(HACCEL hAccelSrc,
|
||||||
|
LPACCEL lpAccelDst,
|
||||||
|
int cAccelEntries)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
CopyAcceleratorTableW(HACCEL hAccelSrc,
|
||||||
|
LPACCEL lpAccelDst,
|
||||||
|
int cAccelEntries)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HACCEL STDCALL
|
||||||
|
CreateAcceleratorTableA(LPACCEL lpaccl,
|
||||||
|
int cEntries)
|
||||||
|
{
|
||||||
|
return (HACCEL)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HACCEL STDCALL
|
||||||
|
CreateAcceleratorTableW(LPACCEL lpaccl,
|
||||||
|
int cEntries)
|
||||||
|
{
|
||||||
|
return (HACCEL)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DestroyAcceleratorTable(HACCEL hAccel)
|
||||||
|
{
|
||||||
|
User32FreeHeap(hAccel);
|
||||||
|
return(TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
HACCEL STDCALL
|
||||||
|
LoadAcceleratorsA(HINSTANCE hInstance,
|
||||||
|
LPCSTR lpTableName)
|
||||||
|
{
|
||||||
|
LPWSTR lpTableNameW;
|
||||||
|
HACCEL Res;
|
||||||
|
lpTableNameW = User32ConvertString(lpTableName);
|
||||||
|
Res = LoadAcceleratorsW(hInstance, lpTableNameW);
|
||||||
|
User32FreeString(lpTableName);
|
||||||
|
return(Res);
|
||||||
|
}
|
||||||
|
|
||||||
|
HACCEL STDCALL
|
||||||
|
LoadAcceleratorsW(HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpTableName)
|
||||||
|
{
|
||||||
|
HRSRC Rsrc;
|
||||||
|
HGLOBAL Mem;
|
||||||
|
PVOID AccelTableRsrc;
|
||||||
|
PVOID AccelTable;
|
||||||
|
ULONG Size;
|
||||||
|
|
||||||
|
Rsrc = FindResourceW(hInstance, lpTableName, RT_ACCELERATOR);
|
||||||
|
if (Rsrc == NULL)
|
||||||
|
{
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Mem = LoadResource(hInstance, Rsrc);
|
||||||
|
Size = SizeofResource(hInstance, Rsrc);
|
||||||
|
AccelTableRsrc = LockResource(Mem);
|
||||||
|
AccelTable = User32AllocHeap(Size);
|
||||||
|
memcpy(AccelTable, AccelTableRsrc, Size);
|
||||||
|
return((HACCEL)AccelTable);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
TranslateAcceleratorA(HWND hWnd,
|
||||||
|
HACCEL hAccTable,
|
||||||
|
LPMSG lpMsg)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
TranslateAcceleratorW(HWND hWnd,
|
||||||
|
HACCEL hAccTable,
|
||||||
|
LPMSG lpMsg)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
53
reactos/lib/user32/windows/bitmap.c
Normal file
53
reactos/lib/user32/windows/bitmap.c
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: bitmap.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HBITMAP
|
||||||
|
STDCALL
|
||||||
|
LoadBitmapA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCSTR lpBitmapName)
|
||||||
|
{
|
||||||
|
return (HBITMAP)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HBITMAP
|
||||||
|
STDCALL
|
||||||
|
LoadBitmapW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpBitmapName)
|
||||||
|
{
|
||||||
|
return (HBITMAP)0;
|
||||||
|
}
|
177
reactos/lib/user32/windows/clipboard.c
Normal file
177
reactos/lib/user32/windows/clipboard.c
Normal file
|
@ -0,0 +1,177 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: clipboard.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CloseClipboard(VOID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
CountClipboardFormats(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EmptyClipboard(VOID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
EnumClipboardFormats(
|
||||||
|
UINT format)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
HANDLE
|
||||||
|
STDCALL
|
||||||
|
GetClipboardData(
|
||||||
|
UINT uFormat)
|
||||||
|
{
|
||||||
|
return (HANDLE)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetClipboardFormatNameA(
|
||||||
|
UINT format,
|
||||||
|
LPSTR lpszFormatName,
|
||||||
|
int cchMaxCount)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetClipboardFormatNameW(
|
||||||
|
UINT format,
|
||||||
|
LPWSTR lpszFormatName,
|
||||||
|
int cchMaxCount)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
GetClipboardOwner(VOID)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
GetClipboardSequenceNumber(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
GetClipboardViewer(VOID)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
GetOpenClipboardWindow(VOID)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetPriorityClipboardFormat(
|
||||||
|
UINT *paFormatPriorityList,
|
||||||
|
int cFormats)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsClipboardFormatAvailable(
|
||||||
|
UINT format)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
OpenClipboard(
|
||||||
|
HWND hWndNewOwner)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
RegisterClipboardFormatA(
|
||||||
|
LPCSTR lpszFormat)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
RegisterClipboardFormatW(
|
||||||
|
LPCWSTR lpszFormat)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
HANDLE
|
||||||
|
STDCALL
|
||||||
|
SetClipboardData(
|
||||||
|
UINT uFormat,
|
||||||
|
HANDLE hMem)
|
||||||
|
{
|
||||||
|
return (HANDLE)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
SetClipboardViewer(
|
||||||
|
HWND hWndNewViewer)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ChangeClipboardChain(
|
||||||
|
HWND hWndRemove,
|
||||||
|
HWND hWndNewNext)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
186
reactos/lib/user32/windows/cursor.c
Normal file
186
reactos/lib/user32/windows/cursor.c
Normal file
|
@ -0,0 +1,186 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: cursor.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/cursor.c
|
||||||
|
* PURPOSE: Cursor
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
CreateCaret(HWND hWnd,
|
||||||
|
HBITMAP hBitmap,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
CreateCursor(HINSTANCE hInst,
|
||||||
|
int xHotSpot,
|
||||||
|
int yHotSpot,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight,
|
||||||
|
CONST VOID *pvANDPlane,
|
||||||
|
CONST VOID *pvXORPlane)
|
||||||
|
{
|
||||||
|
|
||||||
|
return (HCURSOR)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DestroyCaret(VOID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
DestroyCursor(HCURSOR hCursor)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
GetCaretBlinkTime(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetCaretPos(LPPOINT lpPoint)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetClipCursor(LPRECT lpRect)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
GetCursor(VOID)
|
||||||
|
{
|
||||||
|
return (HCURSOR)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetCursorInfo(PCURSORINFO pci)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetCursorPos(LPPOINT lpPoint)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
HideCaret(HWND hWnd)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
LoadCursorA(HINSTANCE hInstance,
|
||||||
|
LPCSTR lpCursorName)
|
||||||
|
{
|
||||||
|
return(LoadImageA(hInstance, lpCursorName, IMAGE_CURSOR, 0, 0,
|
||||||
|
LR_DEFAULTSIZE));
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
LoadCursorFromFileA(LPCSTR lpFileName)
|
||||||
|
{
|
||||||
|
return(LoadImageW(0, lpFileName, IMAGE_CURSOR, 0, 0,
|
||||||
|
LR_LOADFROMFILE | LR_DEFAULTSIZE));
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
LoadCursorFromFileW(LPCWSTR lpFileName)
|
||||||
|
{
|
||||||
|
return(LoadImageW(0, lpFileName, IMAGE_CURSOR, 0, 0,
|
||||||
|
LR_LOADFROMFILE | LR_DEFAULTSIZE));
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
LoadCursorW(HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpCursorName)
|
||||||
|
{
|
||||||
|
return(LoadImageW(hInstance, lpCursorName, IMAGE_CURSOR, 0, 0,
|
||||||
|
LR_DEFAULTSIZE));
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
SetCaretBlinkTime(UINT uMSeconds)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
SetCaretPos(int X,
|
||||||
|
int Y)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
HCURSOR STDCALL
|
||||||
|
SetCursor(HCURSOR hCursor)
|
||||||
|
{
|
||||||
|
return (HCURSOR)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
SetCursorPos(int X,
|
||||||
|
int Y)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
SetSystemCursor(HCURSOR hcur,
|
||||||
|
DWORD id)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
ShowCaret(HWND hWnd)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
ShowCursor(WINBOOL bShow)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
75
reactos/lib/user32/windows/dc.c
Normal file
75
reactos/lib/user32/windows/dc.c
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: dc.c,v 1.6 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HDC
|
||||||
|
STDCALL
|
||||||
|
GetDC(
|
||||||
|
HWND hWnd)
|
||||||
|
{
|
||||||
|
return (HDC)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HDC
|
||||||
|
STDCALL
|
||||||
|
GetDCEx(
|
||||||
|
HWND hWnd,
|
||||||
|
HRGN hrgnClip,
|
||||||
|
DWORD flags)
|
||||||
|
{
|
||||||
|
return (HDC)0;
|
||||||
|
}
|
||||||
|
HDC
|
||||||
|
STDCALL
|
||||||
|
GetWindowDC(
|
||||||
|
HWND hWnd)
|
||||||
|
{
|
||||||
|
return (HDC)0;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
ReleaseDC(
|
||||||
|
HWND hWnd,
|
||||||
|
HDC hDC)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
WindowFromDC(
|
||||||
|
HDC hDC)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: defwnd.c,v 1.1 2002/01/14 01:11:58 dwelch Exp $
|
/* $Id: defwnd.c,v 1.2 2002/06/13 20:36:40 dwelch Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -29,6 +29,31 @@ static HBITMAP hbitmapRestoreD;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
DefFrameProcA(
|
||||||
|
HWND hWnd,
|
||||||
|
HWND hWndMDIClient,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
DefFrameProcW(
|
||||||
|
HWND hWnd,
|
||||||
|
HWND hWndMDIClient,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
UserRedrawIconTitle(HWND hWnd)
|
UserRedrawIconTitle(HWND hWnd)
|
||||||
{
|
{
|
||||||
|
|
458
reactos/lib/user32/windows/dialog.c
Normal file
458
reactos/lib/user32/windows/dialog.c
Normal file
|
@ -0,0 +1,458 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: dialog.c,v 1.5 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateDialogIndirectParamA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCDLGTEMPLATE lpTemplate,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM lParamInit)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateDialogIndirectParamAorW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCDLGTEMPLATE lpTemplate,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM lParamInit)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateDialogIndirectParamW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCDLGTEMPLATE lpTemplate,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM lParamInit)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateDialogParamA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCSTR lpTemplateName,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateDialogParamW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpTemplateName,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
DefDlgProcA(
|
||||||
|
HWND hDlg,
|
||||||
|
UINT Msg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
DefDlgProcW(
|
||||||
|
HWND hDlg,
|
||||||
|
UINT Msg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
INT_PTR
|
||||||
|
STDCALL
|
||||||
|
DialogBoxIndirectParamA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCDLGTEMPLATE hDialogTemplate,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (INT_PTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
INT_PTR
|
||||||
|
STDCALL
|
||||||
|
DialogBoxIndirectParamAorW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCDLGTEMPLATE hDialogTemplate,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (INT_PTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
INT_PTR
|
||||||
|
STDCALL
|
||||||
|
DialogBoxIndirectParamW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCDLGTEMPLATE hDialogTemplate,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (INT_PTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
INT_PTR
|
||||||
|
STDCALL
|
||||||
|
DialogBoxParamA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCSTR lpTemplateName,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (INT_PTR)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
INT_PTR
|
||||||
|
STDCALL
|
||||||
|
DialogBoxParamW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpTemplateName,
|
||||||
|
HWND hWndParent,
|
||||||
|
DLGPROC lpDialogFunc,
|
||||||
|
LPARAM dwInitParam)
|
||||||
|
{
|
||||||
|
return (INT_PTR)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DlgDirListA(
|
||||||
|
HWND hDlg,
|
||||||
|
LPSTR lpPathSpec,
|
||||||
|
int nIDListBox,
|
||||||
|
int nIDStaticPath,
|
||||||
|
UINT uFileType)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DlgDirListComboBoxA(
|
||||||
|
HWND hDlg,
|
||||||
|
LPSTR lpPathSpec,
|
||||||
|
int nIDComboBox,
|
||||||
|
int nIDStaticPath,
|
||||||
|
UINT uFiletype)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DlgDirListComboBoxW(
|
||||||
|
HWND hDlg,
|
||||||
|
LPWSTR lpPathSpec,
|
||||||
|
int nIDComboBox,
|
||||||
|
int nIDStaticPath,
|
||||||
|
UINT uFiletype)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DlgDirListW(
|
||||||
|
HWND hDlg,
|
||||||
|
LPWSTR lpPathSpec,
|
||||||
|
int nIDListBox,
|
||||||
|
int nIDStaticPath,
|
||||||
|
UINT uFileType)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DlgDirSelectComboBoxExA(
|
||||||
|
HWND hDlg,
|
||||||
|
LPSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nIDComboBox)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DlgDirSelectComboBoxExW(
|
||||||
|
HWND hDlg,
|
||||||
|
LPWSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nIDComboBox)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DlgDirSelectExA(
|
||||||
|
HWND hDlg,
|
||||||
|
LPSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nIDListBox)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DlgDirSelectExW(
|
||||||
|
HWND hDlg,
|
||||||
|
LPWSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nIDListBox)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EndDialog(
|
||||||
|
HWND hDlg,
|
||||||
|
INT_PTR nResult)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
GetDialogBaseUnits(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetDlgCtrlID(
|
||||||
|
HWND hwndCtl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
GetDlgItem(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
GetDlgItemInt(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
WINBOOL *lpTranslated,
|
||||||
|
WINBOOL bSigned)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
GetDlgItemTextA(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
LPSTR lpString,
|
||||||
|
int nMaxCount)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
GetDlgItemTextW(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
LPWSTR lpString,
|
||||||
|
int nMaxCount)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
GetNextDlgGroupItem(
|
||||||
|
HWND hDlg,
|
||||||
|
HWND hCtl,
|
||||||
|
WINBOOL bPrevious)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
GetNextDlgTabItem(
|
||||||
|
HWND hDlg,
|
||||||
|
HWND hCtl,
|
||||||
|
WINBOOL bPrevious)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
#if 0
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsDialogMessage(
|
||||||
|
HWND hDlg,
|
||||||
|
LPMSG lpMsg)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsDialogMessageA(
|
||||||
|
HWND hDlg,
|
||||||
|
LPMSG lpMsg)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsDialogMessageW(
|
||||||
|
HWND hDlg,
|
||||||
|
LPMSG lpMsg)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
IsDlgButtonChecked(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDButton)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
MapDialogRect(
|
||||||
|
HWND hDlg,
|
||||||
|
LPRECT lpRect)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
SendDlgItemMessageA(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
UINT Msg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
SendDlgItemMessageW(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
UINT Msg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetDlgItemInt(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
UINT uValue,
|
||||||
|
WINBOOL bSigned)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetDlgItemTextA(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
LPCSTR lpString)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetDlgItemTextW(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDDlgItem,
|
||||||
|
LPCWSTR lpString)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CheckDlgButton(
|
||||||
|
HWND hDlg,
|
||||||
|
int nIDButton,
|
||||||
|
UINT uCheck)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
214
reactos/lib/user32/windows/draw.c
Normal file
214
reactos/lib/user32/windows/draw.c
Normal file
|
@ -0,0 +1,214 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: draw.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GrayStringA(
|
||||||
|
HDC hDC,
|
||||||
|
HBRUSH hBrush,
|
||||||
|
GRAYSTRINGPROC lpOutputFunc,
|
||||||
|
LPARAM lpData,
|
||||||
|
int nCount,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GrayStringW(
|
||||||
|
HDC hDC,
|
||||||
|
HBRUSH hBrush,
|
||||||
|
GRAYSTRINGPROC lpOutputFunc,
|
||||||
|
LPARAM lpData,
|
||||||
|
int nCount,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InvertRect(
|
||||||
|
HDC hDC,
|
||||||
|
CONST RECT *lprc)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
TabbedTextOutA(
|
||||||
|
HDC hDC,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
LPCSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nTabPositions,
|
||||||
|
CONST LPINT lpnTabStopPositions,
|
||||||
|
int nTabOrigin)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
TabbedTextOutW(
|
||||||
|
HDC hDC,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
LPCWSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nTabPositions,
|
||||||
|
CONST LPINT lpnTabStopPositions,
|
||||||
|
int nTabOrigin)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
FrameRect(
|
||||||
|
HDC hDC,
|
||||||
|
CONST RECT *lprc,
|
||||||
|
HBRUSH hbr)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
FlashWindow(
|
||||||
|
HWND hWnd,
|
||||||
|
WINBOOL bInvert)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
FlashWindowEx(
|
||||||
|
PFLASHWINFO pfwi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
FillRect(
|
||||||
|
HDC hDC,
|
||||||
|
CONST RECT *lprc,
|
||||||
|
HBRUSH hbr)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawAnimatedRects(
|
||||||
|
HWND hwnd,
|
||||||
|
int idAni,
|
||||||
|
CONST RECT *lprcFrom,
|
||||||
|
CONST RECT *lprcTo)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawCaption(
|
||||||
|
HWND hwnd,
|
||||||
|
HDC hdc,
|
||||||
|
LPRECT lprc,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawEdge(
|
||||||
|
HDC hdc,
|
||||||
|
LPRECT qrc,
|
||||||
|
UINT edge,
|
||||||
|
UINT grfFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawFocusRect(
|
||||||
|
HDC hDC,
|
||||||
|
CONST RECT *lprc)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawStateA(
|
||||||
|
HDC hdc,
|
||||||
|
HBRUSH hbr,
|
||||||
|
DRAWSTATEPROC lpOutputFunc,
|
||||||
|
LPARAM lData,
|
||||||
|
WPARAM wData,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
int cx,
|
||||||
|
int cy,
|
||||||
|
UINT fuFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawStateW(
|
||||||
|
HDC hdc,
|
||||||
|
HBRUSH hbr,
|
||||||
|
DRAWSTATEPROC lpOutputFunc,
|
||||||
|
LPARAM lData,
|
||||||
|
WPARAM wData,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
int cx,
|
||||||
|
int cy,
|
||||||
|
UINT fuFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
108
reactos/lib/user32/windows/font.c
Normal file
108
reactos/lib/user32/windows/font.c
Normal file
|
@ -0,0 +1,108 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: font.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
GetTabbedTextExtentA(
|
||||||
|
HDC hDC,
|
||||||
|
LPCSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nTabPositions,
|
||||||
|
CONST LPINT lpnTabStopPositions)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
GetTabbedTextExtentW(
|
||||||
|
HDC hDC,
|
||||||
|
LPCWSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
int nTabPositions,
|
||||||
|
CONST LPINT lpnTabStopPositions)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DrawTextA(
|
||||||
|
HDC hDC,
|
||||||
|
LPCSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
LPRECT lpRect,
|
||||||
|
UINT uFormat)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DrawTextExA(
|
||||||
|
HDC hdc,
|
||||||
|
LPSTR lpchText,
|
||||||
|
int cchText,
|
||||||
|
LPRECT lprc,
|
||||||
|
UINT dwDTFormat,
|
||||||
|
LPDRAWTEXTPARAMS lpDTParams)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DrawTextExW(
|
||||||
|
HDC hdc,
|
||||||
|
LPWSTR lpchText,
|
||||||
|
int cchText,
|
||||||
|
LPRECT lprc,
|
||||||
|
UINT dwDTFormat,
|
||||||
|
LPDRAWTEXTPARAMS lpDTParams)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
DrawTextW(
|
||||||
|
HDC hDC,
|
||||||
|
LPCWSTR lpString,
|
||||||
|
int nCount,
|
||||||
|
LPRECT lpRect,
|
||||||
|
UINT uFormat)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
82
reactos/lib/user32/windows/hook.c
Normal file
82
reactos/lib/user32/windows/hook.c
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: hook.c,v 1.6 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
UnhookWindowsHookEx(
|
||||||
|
HHOOK hhk)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
#if 0
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CallMsgFilter(
|
||||||
|
LPMSG lpMsg,
|
||||||
|
int nCode)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CallMsgFilterA(
|
||||||
|
LPMSG lpMsg,
|
||||||
|
int nCode)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CallMsgFilterW(
|
||||||
|
LPMSG lpMsg,
|
||||||
|
int nCode)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
CallNextHookEx(
|
||||||
|
HHOOK hhk,
|
||||||
|
int nCode,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
167
reactos/lib/user32/windows/icon.c
Normal file
167
reactos/lib/user32/windows/icon.c
Normal file
|
@ -0,0 +1,167 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: icon.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
CopyIcon(
|
||||||
|
HICON hIcon)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
CreateIcon(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight,
|
||||||
|
BYTE cPlanes,
|
||||||
|
BYTE cBitsPixel,
|
||||||
|
CONST BYTE *lpbANDbits,
|
||||||
|
CONST BYTE *lpbXORbits)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
CreateIconFromResource(
|
||||||
|
PBYTE presbits,
|
||||||
|
DWORD dwResSize,
|
||||||
|
WINBOOL fIcon,
|
||||||
|
DWORD dwVer)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
CreateIconFromResourceEx(
|
||||||
|
PBYTE pbIconBits,
|
||||||
|
DWORD cbIconBits,
|
||||||
|
WINBOOL fIcon,
|
||||||
|
DWORD dwVersion,
|
||||||
|
int cxDesired,
|
||||||
|
int cyDesired,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
CreateIconIndirect(
|
||||||
|
PICONINFO piconinfo)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DestroyIcon(
|
||||||
|
HICON hIcon)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawIcon(
|
||||||
|
HDC hDC,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
HICON hIcon)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawIconEx(
|
||||||
|
HDC hdc,
|
||||||
|
int xLeft,
|
||||||
|
int yTop,
|
||||||
|
HICON hIcon,
|
||||||
|
int cxWidth,
|
||||||
|
int cyWidth,
|
||||||
|
UINT istepIfAniCur,
|
||||||
|
HBRUSH hbrFlickerFreeDraw,
|
||||||
|
UINT diFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetIconInfo(
|
||||||
|
HICON hIcon,
|
||||||
|
PICONINFO piconinfo)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
LoadIconA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCSTR lpIconName)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HICON
|
||||||
|
STDCALL
|
||||||
|
LoadIconW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpIconName)
|
||||||
|
{
|
||||||
|
return (HICON)0;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
LookupIconIdFromDirectory(
|
||||||
|
PBYTE presbits,
|
||||||
|
WINBOOL fIcon)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
LookupIconIdFromDirectoryEx(
|
||||||
|
PBYTE presbits,
|
||||||
|
WINBOOL fIcon,
|
||||||
|
int cxDesired,
|
||||||
|
int cyDesired,
|
||||||
|
UINT Flags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
279
reactos/lib/user32/windows/input.c
Normal file
279
reactos/lib/user32/windows/input.c
Normal file
|
@ -0,0 +1,279 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: input.c,v 1.3 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HKL STDCALL
|
||||||
|
ActivateKeyboardLayout(HKL hkl,
|
||||||
|
UINT Flags)
|
||||||
|
{
|
||||||
|
return (HKL)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
BlockInput(WINBOOL fBlockIt)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
EnableWindow(HWND hWnd,
|
||||||
|
WINBOOL bEnable)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
SHORT STDCALL
|
||||||
|
GetAsyncKeyState(int vKey)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HKL STDCALL
|
||||||
|
GetKeyboardLayout(DWORD idThread)
|
||||||
|
{
|
||||||
|
return (HKL)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL GetInputState(VOID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
GetKBCodePage(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
GetKeyNameTextA(LONG lParam,
|
||||||
|
LPSTR lpString,
|
||||||
|
int nSize)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
GetKeyNameTextW(LONG lParam,
|
||||||
|
LPWSTR lpString,
|
||||||
|
int nSize)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
SHORT STDCALL
|
||||||
|
GetKeyState(int nVirtKey)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
GetKeyboardLayoutList(int nBuff,
|
||||||
|
HKL FAR *lpList)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetKeyboardLayoutNameA(LPSTR pwszKLID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetKeyboardLayoutNameW(LPWSTR pwszKLID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetKeyboardState(PBYTE lpKeyState)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
GetKeyboardType(int nTypeFlag)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
GetLastInputInfo(PLASTINPUTINFO plii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
HKL STDCALL
|
||||||
|
LoadKeyboardLayoutA(LPCSTR pwszKLID,
|
||||||
|
UINT Flags)
|
||||||
|
{
|
||||||
|
return (HKL)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HKL STDCALL
|
||||||
|
LoadKeyboardLayoutW(LPCWSTR pwszKLID,
|
||||||
|
UINT Flags)
|
||||||
|
{
|
||||||
|
return (HKL)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
MapVirtualKeyA(UINT uCode,
|
||||||
|
UINT uMapType)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
MapVirtualKeyExA(UINT uCode,
|
||||||
|
UINT uMapType,
|
||||||
|
HKL dwhkl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
MapVirtualKeyExW(UINT uCode,
|
||||||
|
UINT uMapType,
|
||||||
|
HKL dwhkl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT STDCALL
|
||||||
|
MapVirtualKeyW(UINT uCode,
|
||||||
|
UINT uMapType)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD STDCALL
|
||||||
|
OemKeyScan(WORD wOemChar)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
SetKeyboardState(LPBYTE lpKeyState)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
ToAscii(UINT uVirtKey,
|
||||||
|
UINT uScanCode,
|
||||||
|
CONST PBYTE lpKeyState,
|
||||||
|
LPWORD lpChar,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
ToAsciiEx(UINT uVirtKey,
|
||||||
|
UINT uScanCode,
|
||||||
|
CONST PBYTE lpKeyState,
|
||||||
|
LPWORD lpChar,
|
||||||
|
UINT uFlags,
|
||||||
|
HKL dwhkl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
ToUnicode(UINT wVirtKey,
|
||||||
|
UINT wScanCode,
|
||||||
|
CONST PBYTE lpKeyState,
|
||||||
|
LPWSTR pwszBuff,
|
||||||
|
int cchBuff,
|
||||||
|
UINT wFlags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int STDCALL
|
||||||
|
ToUnicodeEx(UINT wVirtKey,
|
||||||
|
UINT wScanCode,
|
||||||
|
CONST PBYTE lpKeyState,
|
||||||
|
LPWSTR pwszBuff,
|
||||||
|
int cchBuff,
|
||||||
|
UINT wFlags,
|
||||||
|
HKL dwhkl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
UnloadKeyboardLayout(HKL hkl)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
SHORT STDCALL
|
||||||
|
VkKeyScanA(CHAR ch)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
SHORT STDCALL
|
||||||
|
VkKeyScanExA(CHAR ch,
|
||||||
|
HKL dwhkl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
SHORT STDCALL
|
||||||
|
VkKeyScanExW(WCHAR ch,
|
||||||
|
HKL dwhkl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
SHORT STDCALL
|
||||||
|
VkKeyScanW(WCHAR ch)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
SendInput(
|
||||||
|
UINT nInputs,
|
||||||
|
LPINPUT pInputs,
|
||||||
|
int cbSize)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
98
reactos/lib/user32/windows/mdi.c
Normal file
98
reactos/lib/user32/windows/mdi.c
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: mdi.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateMDIWindowA(
|
||||||
|
LPCSTR lpClassName,
|
||||||
|
LPCSTR lpWindowName,
|
||||||
|
DWORD dwStyle,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight,
|
||||||
|
HWND hWndParent,
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HWND
|
||||||
|
STDCALL
|
||||||
|
CreateMDIWindowW(
|
||||||
|
LPCWSTR lpClassName,
|
||||||
|
LPCWSTR lpWindowName,
|
||||||
|
DWORD dwStyle,
|
||||||
|
int X,
|
||||||
|
int Y,
|
||||||
|
int nWidth,
|
||||||
|
int nHeight,
|
||||||
|
HWND hWndParent,
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (HWND)0;
|
||||||
|
}
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
DefMDIChildProcA(
|
||||||
|
HWND hWnd,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
DefMDIChildProcW(
|
||||||
|
HWND hWnd,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
TranslateMDISysAccel(
|
||||||
|
HWND hWndClient,
|
||||||
|
LPMSG lpMsg)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
583
reactos/lib/user32/windows/menu.c
Normal file
583
reactos/lib/user32/windows/menu.c
Normal file
|
@ -0,0 +1,583 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: menu.c,v 1.3 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/menu.c
|
||||||
|
* PURPOSE: Menus
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* TYPES *********************************************************************/
|
||||||
|
|
||||||
|
typedef struct _MENUITEM
|
||||||
|
{
|
||||||
|
UINT Type;
|
||||||
|
UINT State;
|
||||||
|
UINT Id;
|
||||||
|
HMENU SubMenu;
|
||||||
|
HBITMAP CheckBit;
|
||||||
|
HBITMAP UnCheckBit;
|
||||||
|
LPWSTR Text;
|
||||||
|
DWORD ItemData;
|
||||||
|
DWORD TypeData;
|
||||||
|
HBITMAP BmpItem;
|
||||||
|
RECT Rect;
|
||||||
|
UINT XTab;
|
||||||
|
} MENUITEM, *PMENUITEM;
|
||||||
|
|
||||||
|
typedef struct _POPUP_MENU
|
||||||
|
{
|
||||||
|
MENUITEM* Items;
|
||||||
|
WORD NrItems;
|
||||||
|
} POPUP_MENU, *PPOPUP_MENU;
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
static PPOPUP_MENU
|
||||||
|
MenuGetMenu(HMENU hMenu)
|
||||||
|
{
|
||||||
|
PPOPUP_MENU Menu;
|
||||||
|
Menu = (PPOPUP_MENU)hMenu;
|
||||||
|
return(Menu);
|
||||||
|
}
|
||||||
|
|
||||||
|
static MENUITEM*
|
||||||
|
MenuFindItem(HMENU* hMenu, UINT* nPos, UINT wFlags)
|
||||||
|
{
|
||||||
|
POPUP_MENU* Menu;
|
||||||
|
ULONG i;
|
||||||
|
|
||||||
|
if ((*hMenu) == 0xFFFF || (Menu = MenuGetMenu(*hMenu)) == NULL)
|
||||||
|
{
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
|
if (wFlags & MF_BYPOSITION)
|
||||||
|
{
|
||||||
|
if ((*nPos) >= Menu->NrItems)
|
||||||
|
{
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
|
return(&Menu->Items[*nPos]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MENUITEM* Item = Menu->Items;
|
||||||
|
for (i = 0; i < Menu->NrItems; i++)
|
||||||
|
{
|
||||||
|
if (Item->Id == (*nPos))
|
||||||
|
{
|
||||||
|
*nPos = i;
|
||||||
|
return(Item);
|
||||||
|
}
|
||||||
|
else if (Item->Type & MF_POPUP)
|
||||||
|
{
|
||||||
|
HMENU SubMenu = Item->SubMenu;
|
||||||
|
MENUITEM* SubItem = MenuFindItem(&SubMenu, nPos, wFlags);
|
||||||
|
if (SubItem)
|
||||||
|
{
|
||||||
|
*hMenu = SubMenu;
|
||||||
|
return(SubItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
AppendMenuA(HMENU hMenu,
|
||||||
|
UINT uFlags,
|
||||||
|
UINT_PTR uIDNewItem,
|
||||||
|
LPCSTR lpNewItem)
|
||||||
|
{
|
||||||
|
DPRINT("AppendMenuA(hMenu 0x%X, uFlags 0x%X, uIDNewItem %d, "
|
||||||
|
"lpNewItem %s\n", hMenu, uFlags, uIDNewItem, lpNewItem);
|
||||||
|
return(InsertMenuA(hMenu, -1, uFlags | MF_BYPOSITION, uIDNewItem,
|
||||||
|
lpNewItem));
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL STDCALL
|
||||||
|
AppendMenuW(HMENU hMenu,
|
||||||
|
UINT uFlags,
|
||||||
|
UINT_PTR uIDNewItem,
|
||||||
|
LPCWSTR lpNewItem)
|
||||||
|
{
|
||||||
|
DPRINT("AppendMenuW(hMenu 0x%X, uFlags 0x%X, uIDNewItem %d, "
|
||||||
|
"lpNewItem %S\n", hMenu, uFlags, uIDNewItem, lpNewItem);
|
||||||
|
return(InsertMenuW(hMenu, -1, uFlags | MF_BYPOSITION, uIDNewItem,
|
||||||
|
lpNewItem));
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD STDCALL
|
||||||
|
CheckMenuItem(HMENU hmenu,
|
||||||
|
UINT uIDCheckItem,
|
||||||
|
UINT uCheck)
|
||||||
|
{
|
||||||
|
MENUITEM* Item;
|
||||||
|
DWORD Ret;
|
||||||
|
|
||||||
|
DPRINT("CheckMenuItem(hmenu 0x%X, uIDCheckItem %d, uCheck %d",
|
||||||
|
hmenu, uIDCheckItem, uCheck);
|
||||||
|
if ((Item = MenuFindItem(&hmenu, &uIDCheckItem, uCheck)) == NULL)
|
||||||
|
{
|
||||||
|
return(-1);
|
||||||
|
}
|
||||||
|
Ret = Item->State & MF_CHECKED;
|
||||||
|
if (uCheck & MF_CHECKED)
|
||||||
|
{
|
||||||
|
Item->State |= MF_CHECKED;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Item->State &= ~MF_CHECKED;
|
||||||
|
}
|
||||||
|
return(Ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CheckMenuRadioItem(
|
||||||
|
HMENU hmenu,
|
||||||
|
UINT idFirst,
|
||||||
|
UINT idLast,
|
||||||
|
UINT idCheck,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
CreateMenu(VOID)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
CreatePopupMenu(VOID)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DeleteMenu(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DestroyMenu(
|
||||||
|
HMENU hMenu)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
DrawMenuBar(
|
||||||
|
HWND hWnd)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EnableMenuItem(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uIDEnableItem,
|
||||||
|
UINT uEnable)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EndMenu(VOID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
GetMenu(
|
||||||
|
HWND hWnd)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMenuBarInfo(
|
||||||
|
HWND hwnd,
|
||||||
|
LONG idObject,
|
||||||
|
LONG idItem,
|
||||||
|
PMENUBARINFO pmbi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
GetMenuCheckMarkDimensions(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
GetMenuDefaultItem(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT fByPos,
|
||||||
|
UINT gmdiFlags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMenuInfo(
|
||||||
|
HMENU hmenu,
|
||||||
|
LPCMENUINFO lpcmi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetMenuItemCount(
|
||||||
|
HMENU hMenu)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
GetMenuItemID(
|
||||||
|
HMENU hMenu,
|
||||||
|
int nPos)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMenuItemInfoA(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
WINBOOL fByPosition,
|
||||||
|
LPMENUITEMINFO lpmii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMenuItemInfoW(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
WINBOOL fByPosition,
|
||||||
|
LPMENUITEMINFO lpmii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetMenuItemRect(
|
||||||
|
HWND hWnd,
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
LPRECT lprcItem)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UINT
|
||||||
|
STDCALL
|
||||||
|
GetMenuState(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uId,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetMenuStringA(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uIDItem,
|
||||||
|
LPSTR lpString,
|
||||||
|
int nMaxCount,
|
||||||
|
UINT uFlag)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetMenuStringW(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uIDItem,
|
||||||
|
LPWSTR lpString,
|
||||||
|
int nMaxCount,
|
||||||
|
UINT uFlag)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
GetSubMenu(
|
||||||
|
HMENU hMenu,
|
||||||
|
int nPos)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
HiliteMenuItem(
|
||||||
|
HWND hwnd,
|
||||||
|
HMENU hmenu,
|
||||||
|
UINT uItemHilite,
|
||||||
|
UINT uHilite)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InsertMenuA(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags,
|
||||||
|
UINT_PTR uIDNewItem,
|
||||||
|
LPCSTR lpNewItem)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InsertMenuItemA(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
WINBOOL fByPosition,
|
||||||
|
LPCMENUITEMINFO lpmii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InsertMenuItemW(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
WINBOOL fByPosition,
|
||||||
|
LPCMENUITEMINFO lpmii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InsertMenuW(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags,
|
||||||
|
UINT_PTR uIDNewItem,
|
||||||
|
LPCWSTR lpNewItem)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsMenu(
|
||||||
|
HMENU hMenu)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
LoadMenuA(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCSTR lpMenuName)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
LoadMenuIndirectA(
|
||||||
|
CONST MENUTEMPLATE *lpMenuTemplate)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
LoadMenuIndirectW(
|
||||||
|
CONST MENUTEMPLATE *lpMenuTemplate)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HMENU
|
||||||
|
STDCALL
|
||||||
|
LoadMenuW(
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPCWSTR lpMenuName)
|
||||||
|
{
|
||||||
|
return (HMENU)0;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MenuItemFromPoint(
|
||||||
|
HWND hWnd,
|
||||||
|
HMENU hMenu,
|
||||||
|
POINT ptScreen)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ModifyMenuA(
|
||||||
|
HMENU hMnu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags,
|
||||||
|
UINT_PTR uIDNewItem,
|
||||||
|
LPCSTR lpNewItem)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ModifyMenuW(
|
||||||
|
HMENU hMnu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags,
|
||||||
|
UINT_PTR uIDNewItem,
|
||||||
|
LPCWSTR lpNewItem)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
RemoveMenu(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetMenu(
|
||||||
|
HWND hWnd,
|
||||||
|
HMENU hMenu)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetMenuDefaultItem(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
UINT fByPos)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetMenuInfo(
|
||||||
|
HMENU hmenu,
|
||||||
|
LPCMENUINFO lpcmi)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetMenuItemBitmaps(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uPosition,
|
||||||
|
UINT uFlags,
|
||||||
|
HBITMAP hBitmapUnchecked,
|
||||||
|
HBITMAP hBitmapChecked)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetMenuItemInfoA(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
WINBOOL fByPosition,
|
||||||
|
LPMENUITEMINFO lpmii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetMenuItemInfoW(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uItem,
|
||||||
|
WINBOOL fByPosition,
|
||||||
|
LPMENUITEMINFO lpmii)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
TrackPopupMenu(
|
||||||
|
HMENU hMenu,
|
||||||
|
UINT uFlags,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
int nReserved,
|
||||||
|
HWND hWnd,
|
||||||
|
CONST RECT *prcRect)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
TrackPopupMenuEx(
|
||||||
|
HMENU hmenu,
|
||||||
|
UINT fuFlags,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
HWND hwnd,
|
||||||
|
LPTPMPARAMS lptpm)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: message.c,v 1.5 2002/05/06 22:20:31 dwelch Exp $
|
/* $Id: message.c,v 1.6 2002/06/13 20:36:40 dwelch Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -12,6 +12,78 @@
|
||||||
#include <user32.h>
|
#include <user32.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
LPARAM
|
||||||
|
STDCALL
|
||||||
|
GetMessageExtraInfo(VOID)
|
||||||
|
{
|
||||||
|
return (LPARAM)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
GetMessagePos(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LONG
|
||||||
|
STDCALL
|
||||||
|
GetMessageTime(VOID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InSendMessage(VOID)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
InSendMessageEx(
|
||||||
|
LPVOID lpReserved)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ReplyMessage(
|
||||||
|
LRESULT lResult)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
LPARAM
|
||||||
|
STDCALL
|
||||||
|
SetMessageExtraInfo(
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LPARAM)0;
|
||||||
|
}
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
CallWindowProcA(
|
||||||
|
WNDPROC lpPrevWndFunc,
|
||||||
|
HWND hWnd,
|
||||||
|
UINT Msg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRESULT
|
||||||
|
STDCALL
|
||||||
|
CallWindowProcW(
|
||||||
|
WNDPROC lpPrevWndFunc,
|
||||||
|
HWND hWnd,
|
||||||
|
UINT Msg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return (LRESULT)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
LPMSG
|
LPMSG
|
||||||
MsgiAnsiToUnicodeMessage(
|
MsgiAnsiToUnicodeMessage(
|
||||||
|
|
97
reactos/lib/user32/windows/messagebox.c
Normal file
97
reactos/lib/user32/windows/messagebox.c
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: messagebox.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MessageBoxA(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCSTR lpText,
|
||||||
|
LPCSTR lpCaption,
|
||||||
|
UINT uType)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MessageBoxExA(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCSTR lpText,
|
||||||
|
LPCSTR lpCaption,
|
||||||
|
UINT uType,
|
||||||
|
WORD wLanguageId)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MessageBoxExW(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCWSTR lpText,
|
||||||
|
LPCWSTR lpCaption,
|
||||||
|
UINT uType,
|
||||||
|
WORD wLanguageId)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MessageBoxIndirectA(
|
||||||
|
CONST LPMSGBOXPARAMS lpMsgBoxParams)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MessageBoxIndirectW(
|
||||||
|
CONST LPMSGBOXPARAMS lpMsgBoxParams)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
MessageBoxW(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCWSTR lpText,
|
||||||
|
LPCWSTR lpCaption,
|
||||||
|
UINT uType)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
161
reactos/lib/user32/windows/paint.c
Normal file
161
reactos/lib/user32/windows/paint.c
Normal file
|
@ -0,0 +1,161 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: paint.c,v 1.5 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
HDC
|
||||||
|
STDCALL
|
||||||
|
BeginPaint(
|
||||||
|
HWND hwnd,
|
||||||
|
LPPAINTSTRUCT lpPaint)
|
||||||
|
{
|
||||||
|
return (HDC)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EndPaint(
|
||||||
|
HWND hWnd,
|
||||||
|
CONST PAINTSTRUCT *lpPaint)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
ExcludeUpdateRgn(
|
||||||
|
HDC hDC,
|
||||||
|
HWND hWnd)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GetUpdateRect(
|
||||||
|
HWND hWnd,
|
||||||
|
LPRECT lpRect,
|
||||||
|
WINBOOL bErase)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetUpdateRgn(
|
||||||
|
HWND hWnd,
|
||||||
|
HRGN hRgn,
|
||||||
|
WINBOOL bErase)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InvalidateRect(
|
||||||
|
HWND hWnd,
|
||||||
|
CONST RECT *lpRect,
|
||||||
|
WINBOOL bErase)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InvalidateRgn(
|
||||||
|
HWND hWnd,
|
||||||
|
HRGN hRgn,
|
||||||
|
WINBOOL bErase)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
RedrawWindow(
|
||||||
|
HWND hWnd,
|
||||||
|
CONST RECT *lprcUpdate,
|
||||||
|
HRGN hrgnUpdate,
|
||||||
|
UINT flags)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ScrollDC(
|
||||||
|
HDC hDC,
|
||||||
|
int dx,
|
||||||
|
int dy,
|
||||||
|
CONST RECT *lprcScroll,
|
||||||
|
CONST RECT *lprcClip,
|
||||||
|
HRGN hrgnUpdate,
|
||||||
|
LPRECT lprcUpdate)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
SetWindowRgn(
|
||||||
|
HWND hWnd,
|
||||||
|
HRGN hRgn,
|
||||||
|
WINBOOL bRedraw)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
UpdateWindow(
|
||||||
|
HWND hWnd)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ValidateRect(
|
||||||
|
HWND hWnd,
|
||||||
|
CONST RECT *lpRect)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
ValidateRgn(
|
||||||
|
HWND hWnd,
|
||||||
|
HRGN hRgn)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
GetWindowRgn(
|
||||||
|
HWND hWnd,
|
||||||
|
HRGN hRgn)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
126
reactos/lib/user32/windows/prop.c
Normal file
126
reactos/lib/user32/windows/prop.c
Normal file
|
@ -0,0 +1,126 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: prop.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
EnumPropsA(
|
||||||
|
HWND hWnd,
|
||||||
|
PROPENUMPROC lpEnumFunc)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
EnumPropsExA(
|
||||||
|
HWND hWnd,
|
||||||
|
PROPENUMPROCEX lpEnumFunc,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
EnumPropsExW(
|
||||||
|
HWND hWnd,
|
||||||
|
PROPENUMPROCEX lpEnumFunc,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
EnumPropsW(
|
||||||
|
HWND hWnd,
|
||||||
|
PROPENUMPROC lpEnumFunc)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
HANDLE
|
||||||
|
STDCALL
|
||||||
|
GetPropA(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCSTR lpString)
|
||||||
|
{
|
||||||
|
return (HANDLE)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HANDLE
|
||||||
|
STDCALL
|
||||||
|
GetPropW(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCWSTR lpString)
|
||||||
|
{
|
||||||
|
return (HANDLE)0;
|
||||||
|
}
|
||||||
|
HANDLE
|
||||||
|
STDCALL
|
||||||
|
RemovePropA(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCSTR lpString)
|
||||||
|
{
|
||||||
|
return (HANDLE)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
HANDLE
|
||||||
|
STDCALL
|
||||||
|
RemovePropW(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCWSTR lpString)
|
||||||
|
{
|
||||||
|
return (HANDLE)0;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetPropA(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCSTR lpString,
|
||||||
|
HANDLE hData)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetPropW(
|
||||||
|
HWND hWnd,
|
||||||
|
LPCWSTR lpString,
|
||||||
|
HANDLE hData)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
132
reactos/lib/user32/windows/rect.c
Normal file
132
reactos/lib/user32/windows/rect.c
Normal file
|
@ -0,0 +1,132 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: rect.c,v 1.5 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CopyRect(
|
||||||
|
LPRECT lprcDst,
|
||||||
|
CONST RECT *lprcSrc)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
EqualRect(
|
||||||
|
CONST RECT *lprc1,
|
||||||
|
CONST RECT *lprc2)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
InflateRect(
|
||||||
|
LPRECT lprc,
|
||||||
|
int dx,
|
||||||
|
int dy)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IntersectRect(
|
||||||
|
LPRECT lprcDst,
|
||||||
|
CONST RECT *lprcSrc1,
|
||||||
|
CONST RECT *lprcSrc2)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsRectEmpty(
|
||||||
|
CONST RECT *lprc)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
OffsetRect(
|
||||||
|
LPRECT lprc,
|
||||||
|
int dx,
|
||||||
|
int dy)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
PtInRect(
|
||||||
|
CONST RECT *lprc,
|
||||||
|
POINT pt)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetRect(
|
||||||
|
LPRECT lprc,
|
||||||
|
int xLeft,
|
||||||
|
int yTop,
|
||||||
|
int xRight,
|
||||||
|
int yBottom)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SetRectEmpty(
|
||||||
|
LPRECT lprc)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
SubtractRect(
|
||||||
|
LPRECT lprcDst,
|
||||||
|
CONST RECT *lprcSrc1,
|
||||||
|
CONST RECT *lprcSrc2)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
UnionRect(
|
||||||
|
LPRECT lprcDst,
|
||||||
|
CONST RECT *lprcSrc1,
|
||||||
|
CONST RECT *lprcSrc2)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
296
reactos/lib/user32/windows/text.c
Normal file
296
reactos/lib/user32/windows/text.c
Normal file
|
@ -0,0 +1,296 @@
|
||||||
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: text.c,v 1.1 2002/06/13 20:36:40 dwelch Exp $
|
||||||
|
*
|
||||||
|
* PROJECT: ReactOS user32.dll
|
||||||
|
* FILE: lib/user32/windows/input.c
|
||||||
|
* PURPOSE: Input
|
||||||
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* 09-05-2001 CSH Created
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <user32.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
LPSTR
|
||||||
|
STDCALL
|
||||||
|
CharLowerA(
|
||||||
|
LPSTR lpsz)
|
||||||
|
{
|
||||||
|
return (LPSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
CharLowerBuffA(
|
||||||
|
LPSTR lpsz,
|
||||||
|
DWORD cchLength)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
CharLowerBuffW(
|
||||||
|
LPWSTR lpsz,
|
||||||
|
DWORD cchLength)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPWSTR
|
||||||
|
STDCALL
|
||||||
|
CharLowerW(
|
||||||
|
LPWSTR lpsz)
|
||||||
|
{
|
||||||
|
return (LPWSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPSTR
|
||||||
|
STDCALL
|
||||||
|
CharNextA(
|
||||||
|
LPCSTR lpsz)
|
||||||
|
{
|
||||||
|
return (LPSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPSTR
|
||||||
|
STDCALL
|
||||||
|
CharNextExA(
|
||||||
|
WORD CodePage,
|
||||||
|
LPCSTR lpCurrentChar,
|
||||||
|
DWORD dwFlags)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
LPWSTR
|
||||||
|
STDCALL
|
||||||
|
CharNextW(
|
||||||
|
LPCWSTR lpsz)
|
||||||
|
{
|
||||||
|
return (LPWSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPSTR
|
||||||
|
STDCALL
|
||||||
|
CharPrevA(
|
||||||
|
LPCSTR lpszStart,
|
||||||
|
LPCSTR lpszCurrent)
|
||||||
|
{
|
||||||
|
return (LPSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPWSTR
|
||||||
|
STDCALL
|
||||||
|
CharPrevW(
|
||||||
|
LPCWSTR lpszStart,
|
||||||
|
LPCWSTR lpszCurrent)
|
||||||
|
{
|
||||||
|
return (LPWSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPSTR
|
||||||
|
STDCALL
|
||||||
|
CharPrevExA(
|
||||||
|
WORD CodePage,
|
||||||
|
LPCSTR lpStart,
|
||||||
|
LPCSTR lpCurrentChar,
|
||||||
|
DWORD dwFlags)
|
||||||
|
{
|
||||||
|
return (LPSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CharToOemA(
|
||||||
|
LPCSTR lpszSrc,
|
||||||
|
LPSTR lpszDst)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CharToOemBuffA(
|
||||||
|
LPCSTR lpszSrc,
|
||||||
|
LPSTR lpszDst,
|
||||||
|
DWORD cchDstLength)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CharToOemBuffW(
|
||||||
|
LPCWSTR lpszSrc,
|
||||||
|
LPSTR lpszDst,
|
||||||
|
DWORD cchDstLength)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
CharToOemW(
|
||||||
|
LPCWSTR lpszSrc,
|
||||||
|
LPSTR lpszDst)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPSTR
|
||||||
|
STDCALL
|
||||||
|
CharUpperA(
|
||||||
|
LPSTR lpsz)
|
||||||
|
{
|
||||||
|
return (LPSTR)NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
CharUpperBuffA(
|
||||||
|
LPSTR lpsz,
|
||||||
|
DWORD cchLength)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
CharUpperBuffW(
|
||||||
|
LPWSTR lpsz,
|
||||||
|
DWORD cchLength)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPWSTR
|
||||||
|
STDCALL
|
||||||
|
CharUpperW(
|
||||||
|
LPWSTR lpsz)
|
||||||
|
{
|
||||||
|
return (LPWSTR)NULL;
|
||||||
|
}
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharAlphaA(
|
||||||
|
CHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharAlphaNumericA(
|
||||||
|
CHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharAlphaNumericW(
|
||||||
|
WCHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharAlphaW(
|
||||||
|
WCHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharLowerA(
|
||||||
|
CHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharLowerW(
|
||||||
|
WCHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharUpperA(
|
||||||
|
CHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
IsCharUpperW(
|
||||||
|
WCHAR ch)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
OemToCharA(
|
||||||
|
LPCSTR lpszSrc,
|
||||||
|
LPSTR lpszDst)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
OemToCharBuffA(
|
||||||
|
LPCSTR lpszSrc,
|
||||||
|
LPSTR lpszDst,
|
||||||
|
DWORD cchDstLength)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
OemToCharBuffW(
|
||||||
|
LPCSTR lpszSrc,
|
||||||
|
LPWSTR lpszDst,
|
||||||
|
DWORD cchDstLength)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
OemToCharW(
|
||||||
|
LPCSTR lpszSrc,
|
||||||
|
LPWSTR lpszDst)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
Loading…
Reference in a new issue