diff --git a/reactos/lib/user32/makefile_rex b/reactos/lib/user32/Makefile similarity index 50% rename from reactos/lib/user32/makefile_rex rename to reactos/lib/user32/Makefile index a7d250821bc..2f06829f51f 100644 --- a/reactos/lib/user32/makefile_rex +++ b/reactos/lib/user32/Makefile @@ -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 = ../.. @@ -20,6 +20,11 @@ include $(PATH_TO_TOP)/rules.mak include $(TOOLS_PATH)/helper.mk +CONTROLS_OBJECTS = \ + controls/combobox.o \ + controls/listbox.o \ + controls/scrollbar.o + MISC_OBJECTS = \ misc/desktop.o \ misc/dllmain.o \ @@ -27,17 +32,40 @@ MISC_OBJECTS = \ misc/stubs.o \ misc/win32k.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/class.o \ windows/message.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 = \ $(MISC_OBJECTS) \ - $(WINDOWS_OBJECTS) + $(WINDOWS_OBJECTS) \ + $(CONTROLS_OBJECTS) $(TARGET_NAME).o: $(OBJECTS) $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o diff --git a/reactos/lib/user32/controls/combobox.c b/reactos/lib/user32/controls/combobox.c new file mode 100644 index 00000000000..d13f85d22e9 --- /dev/null +++ b/reactos/lib/user32/controls/combobox.c @@ -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 +#include +#include + +/* FUNCTIONS *****************************************************************/ + +WINBOOL STDCALL +GetComboBoxInfo(HWND hwndCombo, + PCOMBOBOXINFO pcbi) +{ + return FALSE; +} diff --git a/reactos/lib/user32/controls/listbox.c b/reactos/lib/user32/controls/listbox.c new file mode 100644 index 00000000000..3cbe5242120 --- /dev/null +++ b/reactos/lib/user32/controls/listbox.c @@ -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 +#include +#include + +/* FUNCTIONS *****************************************************************/ + +DWORD STDCALL +GetListBoxInfo(HWND hwnd) +{ + return 0; +} diff --git a/reactos/lib/user32/controls/scrollbar.c b/reactos/lib/user32/controls/scrollbar.c new file mode 100644 index 00000000000..1d05d349e2e --- /dev/null +++ b/reactos/lib/user32/controls/scrollbar.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/include/debug.h b/reactos/lib/user32/include/debug.h index 9eab7d6409a..dc957fcbcce 100644 --- a/reactos/lib/user32/include/debug.h +++ b/reactos/lib/user32/include/debug.h @@ -63,6 +63,8 @@ extern DWORD DebugTraceLevel; #define CHECKPOINT \ D(DEBUG_CHECK, ("\n")); +#define DPRINT(X...) D(DEBUG_CHECK, (X)) + #define CP CHECKPOINT #endif /* __DEBUG_H */ diff --git a/reactos/lib/user32/include/user32.h b/reactos/lib/user32/include/user32.h index ea106549d16..106cfd0af1d 100644 --- a/reactos/lib/user32/include/user32.h +++ b/reactos/lib/user32/include/user32.h @@ -8,3 +8,7 @@ #include extern HANDLE ProcessHeap; +VOID +User32FreeHeap(PVOID Block); +PVOID +User32AllocHeap(ULONG Size); diff --git a/reactos/lib/user32/makefile.main b/reactos/lib/user32/makefile.main deleted file mode 100644 index 0470ff9494d..00000000000 --- a/reactos/lib/user32/makefile.main +++ /dev/null @@ -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 \ No newline at end of file diff --git a/reactos/lib/user32/misc/dde.c b/reactos/lib/user32/misc/dde.c new file mode 100644 index 00000000000..00aff68ae51 --- /dev/null +++ b/reactos/lib/user32/misc/dde.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/misc/display.c b/reactos/lib/user32/misc/display.c new file mode 100644 index 00000000000..a231918c83a --- /dev/null +++ b/reactos/lib/user32/misc/display.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/misc/dllmain.c b/reactos/lib/user32/misc/dllmain.c index 7ebb88cdd11..50bef8b5c7e 100644 --- a/reactos/lib/user32/misc/dllmain.c +++ b/reactos/lib/user32/misc/dllmain.c @@ -15,6 +15,34 @@ VOID STDCALL KeBugCheck (ULONG BugCheckCode) {} HANDLE ProcessHeap; 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 Init(VOID) { diff --git a/reactos/lib/user32/misc/object.c b/reactos/lib/user32/misc/object.c new file mode 100644 index 00000000000..dbec3a2179f --- /dev/null +++ b/reactos/lib/user32/misc/object.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/misc/stubs.c b/reactos/lib/user32/misc/stubs.c index 2cc394bb011..8ac77a1bf5a 100644 --- a/reactos/lib/user32/misc/stubs.c +++ b/reactos/lib/user32/misc/stubs.c @@ -1,4 +1,4 @@ -/* $Id: stubs.c,v 1.7 2002/05/06 22:20:31 dwelch Exp $ +/* $Id: stubs.c,v 1.8 2002/06/13 20:36:40 dwelch Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -11,15 +11,6 @@ */ #include -HKL -STDCALL -ActivateKeyboardLayout( - HKL hkl, - UINT Flags) -{ - return (HKL)0; -} - WINBOOL STDCALL AnyPopup(VOID) @@ -27,28 +18,6 @@ AnyPopup(VOID) return FALSE; } -WINBOOL -STDCALL -AppendMenuA( - HMENU hMenu, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCSTR lpNewItem) -{ - return FALSE; -} - -WINBOOL -STDCALL -AppendMenuW( - HMENU hMenu, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCWSTR lpNewItem) -{ - return FALSE; -} - WINBOOL STDCALL AttachThreadInput( @@ -59,23 +28,6 @@ AttachThreadInput( return FALSE; } -HDC -STDCALL -BeginPaint( - HWND hwnd, - LPPAINTSTRUCT lpPaint) -{ - return (HDC)0; -} - -WINBOOL -STDCALL -BlockInput( - WINBOOL fBlockIt) -{ - return FALSE; -} - long STDCALL BroadcastSystemMessage( @@ -112,312 +64,11 @@ BroadcastSystemMessageW( return 0; } -#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; -} -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; -} - -WINBOOL -STDCALL -ChangeClipboardChain( - HWND hWndRemove, - HWND hWndNewNext) -{ - 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; -} - -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 -CheckDlgButton( - HWND hDlg, - int nIDButton, - UINT uCheck) -{ - return FALSE; -} - -DWORD -STDCALL -CheckMenuItem( - HMENU hmenu, - UINT uIDCheckItem, - UINT uCheck) -{ - return 0; -} - -WINBOOL -STDCALL -CheckMenuRadioItem( - HMENU hmenu, - UINT idFirst, - UINT idLast, - UINT idCheck, - UINT uFlags) -{ - return FALSE; -} WINBOOL STDCALL @@ -447,41 +98,6 @@ ClipCursor( return FALSE; } -WINBOOL -STDCALL -CloseClipboard(VOID) -{ - return FALSE; -} - -int -STDCALL -CopyAcceleratorTableA( - HACCEL hAccelSrc, - LPACCEL lpAccelDst, - int cAccelEntries) -{ - return 0; -} - -int -STDCALL -CopyAcceleratorTableW( - HACCEL hAccelSrc, - LPACCEL lpAccelDst, - int cAccelEntries) -{ - return 0; -} - -HICON -STDCALL -CopyIcon( - HICON hIcon) -{ - return (HICON)0; -} - HANDLE STDCALL CopyImage( @@ -494,807 +110,8 @@ CopyImage( return (HANDLE)0; } -WINBOOL -STDCALL -CopyRect( - LPRECT lprcDst, - CONST RECT *lprcSrc) -{ - return FALSE; -} -int -STDCALL -CountClipboardFormats(VOID) -{ - return 0; -} -HACCEL -STDCALL -CreateAcceleratorTableA( - LPACCEL lpaccl, - int cEntries) -{ - return (HACCEL)0; -} - -HACCEL -STDCALL -CreateAcceleratorTableW( - LPACCEL lpaccl, - int cEntries) -{ - return (HACCEL)0; -} - -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; -} - -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; -} - -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; -} - -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; -} - -HMENU -STDCALL -CreateMenu(VOID) -{ - return (HMENU)0; -} - -HMENU -STDCALL -CreatePopupMenu(VOID) -{ - return (HMENU)0; -} - -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; -} - -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; -} - -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; -} - -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 -DeleteMenu( - HMENU hMenu, - UINT uPosition, - UINT uFlags) -{ - return FALSE; -} - -WINBOOL -STDCALL -DestroyAcceleratorTable( - HACCEL hAccel) -{ - return FALSE; -} - -WINBOOL -STDCALL -DestroyCaret(VOID) -{ - return FALSE; -} - -WINBOOL -STDCALL -DestroyCursor( - HCURSOR hCursor) -{ - return FALSE; -} - -WINBOOL -STDCALL -DestroyIcon( - HICON hIcon) -{ - return FALSE; -} - -WINBOOL -STDCALL -DestroyMenu( - HMENU hMenu) -{ - return FALSE; -} - -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 @@ -1305,183 +122,7 @@ DragDetect( return FALSE; } -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 -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 -DrawMenuBar( - HWND hWnd) -{ - 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; -} - -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; -} - -WINBOOL -STDCALL -EmptyClipboard(VOID) -{ - return FALSE; -} - -WINBOOL -STDCALL -EnableMenuItem( - HMENU hMenu, - UINT uIDEnableItem, - UINT uEnable) -{ - return FALSE; -} WINBOOL STDCALL @@ -1493,179 +134,6 @@ EnableScrollBar( return FALSE; } -WINBOOL -STDCALL -EnableWindow( - HWND hWnd, - WINBOOL bEnable) -{ - return FALSE; -} - -WINBOOL -STDCALL -EndDialog( - HWND hDlg, - INT_PTR nResult) -{ - return FALSE; -} - -WINBOOL -STDCALL -EndMenu(VOID) -{ - return FALSE; -} - -WINBOOL -STDCALL -EndPaint( - HWND hWnd, - CONST PAINTSTRUCT *lpPaint) -{ - return FALSE; -} - -UINT -STDCALL -EnumClipboardFormats( - UINT format) -{ - return 0; -} - -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; -} - -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; -} - -WINBOOL -STDCALL -EqualRect( - CONST RECT *lprc1, - CONST RECT *lprc2) -{ - return FALSE; -} - -int -STDCALL -ExcludeUpdateRgn( - HDC hDC, - HWND hWnd) -{ - return 0; -} - WINBOOL STDCALL ExitWindowsEx( @@ -1675,51 +143,8 @@ ExitWindowsEx( return FALSE; } -int -STDCALL -FillRect( - 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 -FrameRect( - HDC hDC, - CONST RECT *lprc, - HBRUSH hbr) -{ - return 0; -} - -WINBOOL -STDCALL -FreeDDElParam( - UINT msg, - LPARAM lParam) -{ - return FALSE; -} HWND STDCALL @@ -1728,14 +153,6 @@ GetActiveWindow(VOID) return (HWND)0; } -SHORT -STDCALL -GetAsyncKeyState( - int vKey) -{ - return 0; -} - HWND STDCALL GetCapture(VOID) @@ -1743,184 +160,6 @@ GetCapture(VOID) return (HWND)0; } -UINT -STDCALL -GetCaretBlinkTime(VOID) -{ - return 0; -} - -WINBOOL -STDCALL -GetCaretPos( - LPPOINT lpPoint) -{ - return FALSE; -} - -WINBOOL -STDCALL -GetClipCursor( - LPRECT lpRect) -{ - return FALSE; -} - -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; -} - -WINBOOL -STDCALL -GetComboBoxInfo( - HWND hwndCombo, - PCOMBOBOXINFO pcbi) -{ - return FALSE; -} - -HCURSOR -STDCALL -GetCursor(VOID) -{ - return (HCURSOR)0; -} - -WINBOOL -STDCALL -GetCursorInfo( - PCURSORINFO pci) -{ - return FALSE; -} - -WINBOOL -STDCALL -GetCursorPos( - LPPOINT lpPoint) -{ - return FALSE; -} - -HDC -STDCALL -GetDC( - HWND hWnd) -{ - return (HDC)0; -} - -HDC -STDCALL -GetDCEx( - HWND hWnd, - HRGN hrgnClip, - DWORD flags) -{ - return (HDC)0; -} - -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; -} UINT STDCALL @@ -1945,289 +184,7 @@ GetGuiResources( return 0; } -WINBOOL -STDCALL -GetIconInfo( - HICON hIcon, - PICONINFO piconinfo) -{ - return FALSE; -} -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; -} - -HKL -STDCALL -GetKeyboardLayout( - DWORD idThread) -{ - return (HKL)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; -} - -DWORD -STDCALL -GetListBoxInfo( - HWND hwnd) -{ - return 0; -} - -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; -} - -LPARAM -STDCALL -GetMessageExtraInfo(VOID) -{ - return (LPARAM)0; -} - -DWORD -STDCALL -GetMessagePos(VOID) -{ - return 0; -} - -LONG -STDCALL -GetMessageTime(VOID) -{ - return 0; -} - -WINBOOL -STDCALL -GetMonitorInfoA( - HMONITOR hMonitor, - LPMONITORINFO lpmi) -{ - return FALSE; -} - -WINBOOL -STDCALL -GetMonitorInfoW( - HMONITOR hMonitor, - LPMONITORINFO lpmi) -{ - return FALSE; -} int STDCALL @@ -2241,59 +198,8 @@ GetMouseMovePointsEx( 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; -} -HWND -STDCALL -GetOpenClipboardWindow(VOID) -{ - return (HWND)0; -} - -int -STDCALL -GetPriorityClipboardFormat( - UINT *paFormatPriorityList, - int cFormats) -{ - return 0; -} - -HANDLE -STDCALL -GetPropA( - HWND hWnd, - LPCSTR lpString) -{ - return (HANDLE)0; -} - -HANDLE -STDCALL -GetPropW( - HWND hWnd, - LPCWSTR lpString) -{ - return (HANDLE)0; -} DWORD STDCALL @@ -2303,54 +209,6 @@ GetQueueStatus( return 0; } -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; -} - -HMENU -STDCALL -GetSubMenu( - HMENU hMenu, - int nPos) -{ - return (HMENU)0; -} DWORD STDCALL @@ -2393,386 +251,21 @@ GetSystemMetrics( { } -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; -} -WINBOOL -STDCALL -GetUpdateRect( - HWND hWnd, - LPRECT lpRect, - WINBOOL bErase) -{ - return FALSE; -} -int -STDCALL -GetUpdateRgn( - HWND hWnd, - HRGN hRgn, - WINBOOL bErase) -{ - return 0; -} -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; -} -HDC -STDCALL -GetWindowDC( - HWND hWnd) -{ - return (HDC)0; -} -int -STDCALL -GetWindowRgn( - HWND hWnd, - HRGN hRgn) -{ - return 0; -} -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 -HideCaret( - HWND hWnd) -{ - return FALSE; -} -WINBOOL -STDCALL -HiliteMenuItem( - HWND hwnd, - HMENU hmenu, - UINT uItemHilite, - UINT uHilite) -{ - return FALSE; -} -WINBOOL -STDCALL -ImpersonateDdeClientWindow( - HWND hWndClient, - HWND hWndServer) -{ - return FALSE; -} -WINBOOL -STDCALL -InSendMessage(VOID) -{ - return FALSE; -} -DWORD -STDCALL -InSendMessageEx( - LPVOID lpReserved) -{ - return 0; -} -WINBOOL -STDCALL -InflateRect( - LPRECT lprc, - int dx, - int dy) -{ - 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 -IntersectRect( - LPRECT lprcDst, - CONST RECT *lprcSrc1, - CONST RECT *lprcSrc2) -{ - return FALSE; -} - -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 -InvertRect( - HDC hDC, - CONST RECT *lprc) -{ - return FALSE; -} - -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 -IsClipboardFormatAvailable( - UINT format) -{ - return FALSE; -} - -#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 -IsMenu( - HMENU hMenu) -{ - return FALSE; -} - -WINBOOL -STDCALL -IsRectEmpty( - CONST RECT *lprc) -{ - return FALSE; -} WINBOOL STDCALL @@ -2782,102 +275,10 @@ IsWindowEnabled( return FALSE; } -WINBOOL -STDCALL -KillTimer( - HWND hWnd, - UINT_PTR uIDEvent) -{ - return FALSE; -} -HACCEL -STDCALL -LoadAcceleratorsA( - HINSTANCE hInstance, - LPCSTR lpTableName) -{ - return (HACCEL)0; -} -HACCEL -STDCALL -LoadAcceleratorsW( - HINSTANCE hInstance, - LPCWSTR lpTableName) -{ - return (HACCEL)0; -} -HBITMAP -STDCALL -LoadBitmapA( - HINSTANCE hInstance, - LPCSTR lpBitmapName) -{ - return (HBITMAP)0; -} -HBITMAP -STDCALL -LoadBitmapW( - HINSTANCE hInstance, - LPCWSTR lpBitmapName) -{ - return (HBITMAP)0; -} - -HCURSOR -STDCALL -LoadCursorA( - HINSTANCE hInstance, - LPCSTR lpCursorName) -{ - return (HCURSOR)0; -} - -HCURSOR -STDCALL -LoadCursorFromFileA( - LPCSTR lpFileName) -{ - return (HCURSOR)0; -} - -HCURSOR -STDCALL -LoadCursorFromFileW( - LPCWSTR lpFileName) -{ - return (HCURSOR)0; -} - -HCURSOR -STDCALL -LoadCursorW( - HINSTANCE hInstance, - LPCWSTR lpCursorName) -{ - return (HCURSOR)0; -} - -HICON -STDCALL -LoadIconA( - HINSTANCE hInstance, - LPCSTR lpIconName) -{ - return (HICON)0; -} - -HICON -STDCALL -LoadIconW( - HINSTANCE hInstance, - LPCWSTR lpIconName) -{ - return (HICON)0; -} HANDLE STDCALL @@ -2905,58 +306,6 @@ LoadImageW( return (HANDLE)0; } -HKL -STDCALL -LoadKeyboardLayoutA( - LPCSTR pwszKLID, - UINT Flags) -{ - return (HKL)0; -} - -HKL -STDCALL -LoadKeyboardLayoutW( - LPCWSTR pwszKLID, - UINT Flags) -{ - return (HKL)0; -} - -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 LoadStringW( @@ -2983,73 +332,7 @@ LockWorkStation(VOID) return FALSE; } -int -STDCALL -LookupIconIdFromDirectory( - PBYTE presbits, - WINBOOL fIcon) -{ - return 0; -} -int -STDCALL -LookupIconIdFromDirectoryEx( - PBYTE presbits, - WINBOOL fIcon, - int cxDesired, - int cyDesired, - UINT Flags) -{ - return 0; -} - -WINBOOL -STDCALL -MapDialogRect( - HWND hDlg, - LPRECT lpRect) -{ - return FALSE; -} - -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; -} int STDCALL @@ -3062,16 +345,6 @@ MapWindowPoints( return 0; } -int -STDCALL -MenuItemFromPoint( - HWND hWnd, - HMENU hMenu, - POINT ptScreen) -{ - return 0; -} - WINBOOL STDCALL MessageBeep( @@ -3080,91 +353,7 @@ MessageBeep( return FALSE; } -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; -} - -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; -} HMONITOR STDCALL @@ -3217,115 +406,12 @@ MsgWaitForMultipleObjectsEx( return 0; } -DWORD -STDCALL -OemKeyScan( - WORD wOemChar) -{ - return 0; -} -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; -} -WINBOOL -STDCALL -OffsetRect( - LPRECT lprc, - int dx, - int dy) -{ - return FALSE; -} -WINBOOL -STDCALL -OpenClipboard( - HWND hWndNewOwner) -{ - return FALSE; -} - -LPARAM -STDCALL -PackDDElParam( - UINT msg, - UINT_PTR uiLo, - UINT_PTR uiHi) -{ - return (LPARAM)0; -} - -WINBOOL -STDCALL -PtInRect( - CONST RECT *lprc, - POINT pt) -{ - return FALSE; -} - -WINBOOL -STDCALL -RedrawWindow( - HWND hWnd, - CONST RECT *lprcUpdate, - HRGN hrgnUpdate, - UINT flags) -{ - return FALSE; -} - -UINT -STDCALL -RegisterClipboardFormatA( - LPCSTR lpszFormat) -{ - return 0; -} - -UINT -STDCALL -RegisterClipboardFormatW( - LPCWSTR lpszFormat) -{ - return 0; -} #if 0 HDEVNOTIFY STDCALL @@ -3366,76 +452,10 @@ ReleaseCapture(VOID) return FALSE; } -int -STDCALL -ReleaseDC( - HWND hWnd, - HDC hDC) -{ - return 0; -} -WINBOOL -STDCALL -RemoveMenu( - HMENU hMenu, - UINT uPosition, - UINT uFlags) -{ - return FALSE; -} -HANDLE -STDCALL -RemovePropA( - HWND hWnd, - LPCSTR lpString) -{ - return (HANDLE)0; -} -HANDLE -STDCALL -RemovePropW( - HWND hWnd, - LPCWSTR lpString) -{ - return (HANDLE)0; -} -WINBOOL -STDCALL -ReplyMessage( - LRESULT lResult) -{ - return FALSE; -} - -LPARAM -STDCALL -ReuseDDElParam( - LPARAM lParam, - UINT msgIn, - UINT msgOut, - UINT_PTR uiLo, - UINT_PTR uiHi) -{ - return (LPARAM)0; -} - -WINBOOL -STDCALL -ScrollDC( - HDC hDC, - int dx, - int dy, - CONST RECT *lprcScroll, - CONST RECT *lprcClip, - HRGN hrgnUpdate, - LPRECT lprcUpdate) -{ - return FALSE; -} WINBOOL STDCALL @@ -3464,39 +484,7 @@ ScrollWindowEx( return 0; } -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; -} - -UINT -STDCALL -SendInput( - UINT nInputs, - LPINPUT pInputs, - int cbSize) -{ - return 0; -} HWND STDCALL @@ -3514,87 +502,9 @@ SetCapture( return (HWND)0; } -WINBOOL -STDCALL -SetCaretBlinkTime( - UINT uMSeconds) -{ - return FALSE; -} -WINBOOL -STDCALL -SetCaretPos( - int X, - int Y) -{ - return FALSE; -} -HANDLE -STDCALL -SetClipboardData( - UINT uFormat, - HANDLE hMem) -{ - return (HANDLE)0; -} -HWND -STDCALL -SetClipboardViewer( - HWND hWndNewViewer) -{ - return (HWND)0; -} - -HCURSOR -STDCALL -SetCursor( - HCURSOR hCursor) -{ - return (HCURSOR)0; -} - -WINBOOL -STDCALL -SetCursorPos( - int X, - int Y) -{ - return FALSE; -} - -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 @@ -3611,15 +521,6 @@ SetFocus( { return (HWND)0; } - -WINBOOL -STDCALL -SetKeyboardState( - LPBYTE lpKeyState) -{ - return FALSE; -} - VOID STDCALL SetLastErrorEx( @@ -3628,149 +529,9 @@ SetLastErrorEx( { } -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; -} - -LPARAM -STDCALL -SetMessageExtraInfo( - LPARAM lParam) -{ - return (LPARAM)0; -} - -WINBOOL -STDCALL -SetPropA( - HWND hWnd, - LPCSTR lpString, - HANDLE hData) -{ - return FALSE; -} - -WINBOOL -STDCALL -SetPropW( - HWND hWnd, - LPCWSTR lpString, - HANDLE hData) -{ - return FALSE; -} - -WINBOOL -STDCALL -SetRect( - LPRECT lprc, - int xLeft, - int yTop, - int xRight, - int yBottom) -{ - return FALSE; -} - -WINBOOL -STDCALL -SetRectEmpty( - LPRECT lprc) -{ - 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 @@ -3782,93 +543,12 @@ SetSysColors( return FALSE; } -WINBOOL -STDCALL -SetSystemCursor( - HCURSOR hcur, - DWORD id) -{ - return FALSE; -} -UINT_PTR -STDCALL -SetTimer( - HWND hWnd, - UINT_PTR nIDEvent, - UINT uElapse, - TIMERPROC lpTimerFunc) -{ - return (UINT_PTR)0; -} -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; -} -int -STDCALL -SetWindowRgn( - HWND hWnd, - HRGN hRgn, - WINBOOL bRedraw) -{ - return 0; -} -WINBOOL -STDCALL -ShowCaret( - HWND hWnd) -{ - return FALSE; -} -int -STDCALL -ShowCursor( - WINBOOL bShow) -{ - return 0; -} - -WINBOOL -STDCALL -ShowScrollBar( - HWND hWnd, - int wBar, - WINBOOL bShow) -{ - return FALSE; -} - -WINBOOL -STDCALL -SubtractRect( - LPRECT lprcDst, - CONST RECT *lprcSrc1, - CONST RECT *lprcSrc2) -{ - return FALSE; -} WINBOOL STDCALL @@ -3900,87 +580,6 @@ SystemParametersInfoW( 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 -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 @@ -3990,110 +589,11 @@ TrackMouseEvent( 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; -} -#if 0 -int -STDCALL -TranslateAccelerator( - HWND hWnd, - HACCEL hAccTable, - LPMSG lpMsg) -{ - return 0; -} -#endif -int -STDCALL -TranslateAcceleratorA( - HWND hWnd, - HACCEL hAccTable, - LPMSG lpMsg) -{ - return 0; -} -int -STDCALL -TranslateAcceleratorW( - HWND hWnd, - HACCEL hAccTable, - LPMSG lpMsg) -{ - return 0; -} -WINBOOL -STDCALL -TranslateMDISysAccel( - HWND hWndClient, - LPMSG lpMsg) -{ - return FALSE; -} - -WINBOOL -STDCALL -UnhookWindowsHookEx( - HHOOK hhk) -{ - return FALSE; -} - -WINBOOL -STDCALL -UnionRect( - LPRECT lprcDst, - CONST RECT *lprcSrc1, - CONST RECT *lprcSrc2) -{ - return FALSE; -} - -WINBOOL -STDCALL -UnloadKeyboardLayout( - HKL hkl) -{ - return FALSE; -} - -WINBOOL -STDCALL -UnpackDDElParam( - UINT msg, - LPARAM lParam, - PUINT_PTR puiLo, - PUINT_PTR puiHi) -{ - return FALSE; -} WINBOOL STDCALL @@ -4112,75 +612,9 @@ UnregisterHotKey( return FALSE; } -WINBOOL -STDCALL -UpdateWindow( - HWND hWnd) -{ - return FALSE; -} -WINBOOL -STDCALL -UserHandleGrantAccess( - HANDLE hUserHandle, - HANDLE hJob, - WINBOOL bGrant) -{ - return FALSE; -} -WINBOOL -STDCALL -ValidateRect( - HWND hWnd, - CONST RECT *lpRect) -{ - return FALSE; -} -WINBOOL -STDCALL -ValidateRgn( - HWND hWnd, - HRGN hRgn) -{ - 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; -} DWORD STDCALL @@ -4191,12 +625,5 @@ WaitForInputIdle( return 0; } -HWND -STDCALL -WindowFromDC( - HDC hDC) -{ - return (HWND)0; -} /* EOF */ diff --git a/reactos/lib/user32/misc/timer.c b/reactos/lib/user32/misc/timer.c new file mode 100644 index 00000000000..4942b4d5791 --- /dev/null +++ b/reactos/lib/user32/misc/timer.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/accel.c b/reactos/lib/user32/windows/accel.c new file mode 100644 index 00000000000..249e04e4bbd --- /dev/null +++ b/reactos/lib/user32/windows/accel.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/bitmap.c b/reactos/lib/user32/windows/bitmap.c new file mode 100644 index 00000000000..67ddd3ce131 --- /dev/null +++ b/reactos/lib/user32/windows/bitmap.c @@ -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 +#include +#include + +/* FUNCTIONS *****************************************************************/ + +HBITMAP +STDCALL +LoadBitmapA( + HINSTANCE hInstance, + LPCSTR lpBitmapName) +{ + return (HBITMAP)0; +} + +HBITMAP +STDCALL +LoadBitmapW( + HINSTANCE hInstance, + LPCWSTR lpBitmapName) +{ + return (HBITMAP)0; +} diff --git a/reactos/lib/user32/windows/clipboard.c b/reactos/lib/user32/windows/clipboard.c new file mode 100644 index 00000000000..8c3430c3e1d --- /dev/null +++ b/reactos/lib/user32/windows/clipboard.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/cursor.c b/reactos/lib/user32/windows/cursor.c new file mode 100644 index 00000000000..79eec118676 --- /dev/null +++ b/reactos/lib/user32/windows/cursor.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/dc.c b/reactos/lib/user32/windows/dc.c new file mode 100644 index 00000000000..8285de817c4 --- /dev/null +++ b/reactos/lib/user32/windows/dc.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index c927d67c209..a66b0af568c 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -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 * PROJECT: ReactOS user32.dll @@ -29,6 +29,31 @@ static HBITMAP hbitmapRestoreD; /* 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 UserRedrawIconTitle(HWND hWnd) { diff --git a/reactos/lib/user32/windows/dialog.c b/reactos/lib/user32/windows/dialog.c new file mode 100644 index 00000000000..684e8c6976b --- /dev/null +++ b/reactos/lib/user32/windows/dialog.c @@ -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 +#include +#include + +/* 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; +} + diff --git a/reactos/lib/user32/windows/draw.c b/reactos/lib/user32/windows/draw.c new file mode 100644 index 00000000000..778f3e761da --- /dev/null +++ b/reactos/lib/user32/windows/draw.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/font.c b/reactos/lib/user32/windows/font.c new file mode 100644 index 00000000000..a3c0dcb6aeb --- /dev/null +++ b/reactos/lib/user32/windows/font.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/hook.c b/reactos/lib/user32/windows/hook.c new file mode 100644 index 00000000000..47599f413d5 --- /dev/null +++ b/reactos/lib/user32/windows/hook.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/icon.c b/reactos/lib/user32/windows/icon.c new file mode 100644 index 00000000000..a7967708673 --- /dev/null +++ b/reactos/lib/user32/windows/icon.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/input.c b/reactos/lib/user32/windows/input.c new file mode 100644 index 00000000000..6722225a824 --- /dev/null +++ b/reactos/lib/user32/windows/input.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/mdi.c b/reactos/lib/user32/windows/mdi.c new file mode 100644 index 00000000000..3c05fa3f4c7 --- /dev/null +++ b/reactos/lib/user32/windows/mdi.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/menu.c b/reactos/lib/user32/windows/menu.c new file mode 100644 index 00000000000..038d0ef2498 --- /dev/null +++ b/reactos/lib/user32/windows/menu.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/message.c b/reactos/lib/user32/windows/message.c index 26b950d2365..bd3f422337b 100644 --- a/reactos/lib/user32/windows/message.c +++ b/reactos/lib/user32/windows/message.c @@ -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 * PROJECT: ReactOS user32.dll @@ -12,6 +12,78 @@ #include #include +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 MsgiAnsiToUnicodeMessage( diff --git a/reactos/lib/user32/windows/messagebox.c b/reactos/lib/user32/windows/messagebox.c new file mode 100644 index 00000000000..afc1e7e1b44 --- /dev/null +++ b/reactos/lib/user32/windows/messagebox.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/paint.c b/reactos/lib/user32/windows/paint.c new file mode 100644 index 00000000000..5ff343051d6 --- /dev/null +++ b/reactos/lib/user32/windows/paint.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/prop.c b/reactos/lib/user32/windows/prop.c new file mode 100644 index 00000000000..87510aaecf2 --- /dev/null +++ b/reactos/lib/user32/windows/prop.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/rect.c b/reactos/lib/user32/windows/rect.c new file mode 100644 index 00000000000..3296f868d96 --- /dev/null +++ b/reactos/lib/user32/windows/rect.c @@ -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 +#include +#include + +/* 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; +} diff --git a/reactos/lib/user32/windows/text.c b/reactos/lib/user32/windows/text.c new file mode 100644 index 00000000000..73f3cc5ee2d --- /dev/null +++ b/reactos/lib/user32/windows/text.c @@ -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 +#include +#include + +/* 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; +}