Added a stub implementation of commctrl.dll for WinCE support

svn path=/trunk/; revision=8533
This commit is contained in:
Steven Edwards 2004-03-04 18:54:21 +00:00
parent 499908b04f
commit 5c30d2cc66
5 changed files with 245 additions and 0 deletions

View file

@ -0,0 +1,19 @@
PATH_TO_TOP = ../..
TARGET_TYPE = dynlink
TARGET_NAME = commctrl
TARGET_BASE=0x75e60000
# require os code to explicitly request A/W version of structs/functions
TARGET_CFLAGS += -D_DISABLE_TIDENTS -Wall -Werror
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = commctrl_main.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,60 @@
LIBRARY commctrl.dll
EXPORTS
;Header_Init@@YAHPAUHINSTANCE__@@@Z
;ListView_Init@@YAHPAUHINSTANCE__@@@Z
;TV_Init@@YAHPAUHINSTANCE__@@@Z
;_CenterWindow @35
;_CommandBands_AddAdornments @39
;_CommandBands_AddBands @37
;_CommandBands_Create @36
;_CommandBands_GetCommandBar @38
;_CommandBands_GetRestoreInformation @41
;_CommandBands_Show @40
_CommandBar_AddAdornments @10
;_CommandBar_AddBitmap @5
;_CommandBar_AlignAdornments @44
_CommandBar_Create @3
;_CommandBar_DrawMenuBar @43
;_CommandBar_GetItemWindow @11
;_CommandBar_GetMenu @9
;_CommandBar_Height @12
;_CommandBar_InsertComboBox @6
;_CommandBar_InsertControl @7
_CommandBar_InsertMenubar @8
;_CommandBar_InsertMenubarEx @42
_CommandBar_Show @4
;_CreatePropertySheetPageW @19
;_CreateStatusWindowW @17
;_CreateToolbar @15
;_CreateToolbarEx @16
;_CreateUpDownControl @14
;_DPA_Destroy @31
;_DPA_GetPtr @32
;_DSA_Create @23
;_DSA_DeleteAllItems @30
;_DSA_DeleteItem @29
;_DSA_Destroy @24
;_DSA_DestroyCallback @57
;_DSA_GetItem @25
;_DSA_GetItemPtr @26
;_DSA_InsertItem @27
;_DSA_SetItem @28
;_DestroyPropertySheetPage @20
;_DrawStatusTextW @21
;InitCapEdit
;_InitCommonControls @1
;_InitCommonControlsEx @2
;InitDateClasses
;InitProgressClass
;InitReBarClass
;InitStatusClass
;InitToolTipsClass
;InitToolbarClass
;InitTrackBar
;InitUpDownClass
;_InvertRect @22
;_IsCommandBarMessage @13
;_PropertySheetW @18
;_StrToIntW @34
;_Str_SetPtrW @33
;Tab_Init

View file

@ -0,0 +1,60 @@
LIBRARY commctrl.dll
EXPORTS
;Header_Init@@YAHPAUHINSTANCE__@@@Z
;ListView_Init@@YAHPAUHINSTANCE__@@@Z
;TV_Init@@YAHPAUHINSTANCE__@@@Z
;_CenterWindow @35
;_CommandBands_AddAdornments @39
;_CommandBands_AddBands @37
;_CommandBands_Create @36
;_CommandBands_GetCommandBar @38
;_CommandBands_GetRestoreInformation @41
;_CommandBands_Show @40
_CommandBar_AddAdornments @10
;_CommandBar_AddBitmap @5
;_CommandBar_AlignAdornments @44
_CommandBar_Create @3
;_CommandBar_DrawMenuBar @43
;_CommandBar_GetItemWindow @11
;_CommandBar_GetMenu @9
;_CommandBar_Height @12
;_CommandBar_InsertComboBox @6
;_CommandBar_InsertControl @7
_CommandBar_InsertMenubar @8
;_CommandBar_InsertMenubarEx @42
_CommandBar_Show @4
;_CreatePropertySheetPageW @19
;_CreateStatusWindowW @17
;_CreateToolbar @15
;_CreateToolbarEx @16
;_CreateUpDownControl @14
;_DPA_Destroy @31
;_DPA_GetPtr @32
;_DSA_Create @23
;_DSA_DeleteAllItems @30
;_DSA_DeleteItem @29
;_DSA_Destroy @24
;_DSA_DestroyCallback @57
;_DSA_GetItem @25
;_DSA_GetItemPtr @26
;_DSA_InsertItem @27
;_DSA_SetItem @28
;_DestroyPropertySheetPage @20
;_DrawStatusTextW @21
;InitCapEdit
;_InitCommonControls @1
;_InitCommonControlsEx @2
;InitDateClasses
;InitProgressClass
;InitReBarClass
;InitStatusClass
;InitToolTipsClass
;InitToolbarClass
;InitTrackBar
;InitUpDownClass
;_InvertRect @22
;_IsCommandBarMessage @13
;_PropertySheetW @18
;_StrToIntW @34
;_Str_SetPtrW @33
;Tab_Init

View file

@ -0,0 +1,38 @@
#include <defines.h>
#include <reactos/resource.h>
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD
PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", RES_STR_COMPANY_NAME
VALUE "FileDescription", "ReactOS WinCE Compatiblity Layer\0"
VALUE "FileVersion", RES_STR_FILE_VERSION
VALUE "InternalName", "coredll\0"
VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT
VALUE "OriginalFilename", "coredll.dll\0"
VALUE "ProductName", RES_STR_PRODUCT_NAME
VALUE "ProductVersion", RES_STR_PRODUCT_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

View file

@ -0,0 +1,68 @@
/*
* ReactOS-CE Common Controls
*
* Copyright 2004 Steven Edwards
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* TODO:
* ATM this is just a dummy forwarding dll for the WinCE API to Win32 API
* When you exit a simple WinCE app on Windows or on ReactOS it causes
* a program error or unhandled exception probl'y because we dont handle
* threading and process attaching/detaching like we should here.
*
* There will be some parts of the WinCE API that cant just be forwarded to
* the Win32 API as paramater names or types may differ. In that case you will
* need to copy the Win32 implementation and make the needed changes.
*/
#include <debug.h>
#include "windows.h"
BOOL STDCALL
DllMain(HANDLE hDll,
DWORD dwReason,
LPVOID lpReserved)
{
return TRUE;
}
BOOL STDCALL
_CommandBar_Create()
{
DPRINT1("CommandBar_Create called\n");
return TRUE;
}
BOOL STDCALL
_CommandBar_Show()
{
DPRINT1("CommandBar_Show called\n");
return TRUE;
}
BOOL STDCALL
_CommandBar_InsertMenubar()
{
DPRINT1("CommandBar_InsertMenubar called\n");
return TRUE;
}
BOOL STDCALL
_CommandBar_AddAdornments()
{
DPRINT1("CommandBar_AddAdornments called\n");
return TRUE;
}