Index: boot/bootdata/hivecls.inf =================================================================== --- boot/bootdata/hivecls.inf (revision 58303) +++ boot/bootdata/hivecls.inf (working copy) @@ -260,6 +260,12 @@ HKCR,"SoundRec\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225" HKCR,"SoundRec\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe %1" +; MS Styles (Themes) +HKCR,".msstyles","",0x00000000,"msstylesfile" +HKCR,"msstylesfile","",0x00000000,"Visual Style File" +HKCR,"msstylesfile\DefaultIcon","","0x00020000","%SystemRoot%\system32\themeui.dll,-701" +HKCR,"msstylesfile\shell\open\command","",0x00000000,"%SystemRoot%\system32\rundll32.exe shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Appearance /Action:OpenMSTheme /file:""%1""" + ; Midi Sounds HKCR,".mid","",0x00000000,"MIDFile" HKCR,".midi","",0x00000000,"MIDFile" Index: boot/bootdata/txtsetup.sif =================================================================== --- boot/bootdata/txtsetup.sif (revision 58303) +++ boot/bootdata/txtsetup.sif (working copy) @@ -10,6 +10,8 @@ 5 = media 6 = Fonts 7 = bin +8 = Resources +9 = Resources\Themes [DiskSpaceRequirements] ; Required free system partition disk space in MB Index: dll/win32/themeui/CMakeLists.txt =================================================================== --- dll/win32/themeui/CMakeLists.txt (revision 0) +++ dll/win32/themeui/CMakeLists.txt (working copy) @@ -0,0 +1,15 @@ +list(APPEND SOURCE + dllmain.c) + +add_library(themeui SHARED + ${SOURCE} + resource.rc) + +target_link_libraries(themeui wine) + +add_importlibs(themeui + msvcrt + kernel32 + ntdll) + +add_cd_file(TARGET themeui DESTINATION reactos/system32 FOR all) \ No newline at end of file Index: dll/win32/themeui/dllmain.c =================================================================== --- dll/win32/themeui/dllmain.c (revision 0) +++ dll/win32/themeui/dllmain.c (working copy) @@ -0,0 +1,21 @@ +#include +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(themeui); + +BOOL +WINAPI +DllMain(HINSTANCE hInstance, + DWORD dwReason, + LPVOID reserved) +{ + switch(dwReason) + { + //case DLL_WINE_PREATTACH: + //return FALSE; + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hInstance); + break; + } + return TRUE; +} \ No newline at end of file Index: dll/win32/themeui/res/1.ico =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: dll/win32/themeui/res/1.ico =================================================================== --- dll/win32/themeui/res/1.ico (revision 0) +++ dll/win32/themeui/res/1.ico (working copy) Property changes on: dll/win32/themeui/res/1.ico ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: dll/win32/themeui/resource.h =================================================================== --- dll/win32/themeui/resource.h (revision 0) +++ dll/win32/themeui/resource.h (working copy) @@ -0,0 +1,6 @@ +#ifndef RESOURCE_H +#define RESOURCE_H + +#define IDI_THEME_ICON 1 + +#endif /* RESOURCE_H */ \ No newline at end of file Index: dll/win32/themeui/resource.rc =================================================================== --- dll/win32/themeui/resource.rc (revision 0) +++ dll/win32/themeui/resource.rc (working copy) @@ -0,0 +1,7 @@ +#define REACTOS_VERSION_DLL +#define REACTOS_STR_FILE_DESCRIPTION "ThemeUI DLL\0" +#define REACTOS_STR_INTERNAL_NAME "themeui\0" +#define REACTOS_STR_ORIGINAL_FILENAME "themeui.dll\0" +#include + +IDI_THEME_ICON ICON "res/1.ico" \ No newline at end of file