Commit f4e6489e authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

appwiz.cpl: Add skeleton Add/Remove Programs control panel.

parent 5800539b
......@@ -174,6 +174,7 @@ ALL_MAKEFILES = \
dlls/advpack/Makefile \
dlls/advpack/tests/Makefile \
dlls/amstream/Makefile \
dlls/appwiz.cpl/Makefile \
dlls/atl/Makefile \
dlls/avicap32/Makefile \
dlls/avifil32/Makefile \
......@@ -606,6 +607,7 @@ dlls/advapi32/tests/Makefile: dlls/advapi32/tests/Makefile.in dlls/Maketest.rule
dlls/advpack/Makefile: dlls/advpack/Makefile.in dlls/Makedll.rules
dlls/advpack/tests/Makefile: dlls/advpack/tests/Makefile.in dlls/Maketest.rules
dlls/amstream/Makefile: dlls/amstream/Makefile.in dlls/Makedll.rules
dlls/appwiz.cpl/Makefile: dlls/appwiz.cpl/Makefile.in dlls/Makedll.rules
dlls/atl/Makefile: dlls/atl/Makefile.in dlls/Makedll.rules
dlls/avicap32/Makefile: dlls/avicap32/Makefile.in dlls/Makedll.rules
dlls/avifil32/Makefile: dlls/avifil32/Makefile.in dlls/Makedll.rules
......
......@@ -21927,6 +21927,8 @@ ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
ac_config_files="$ac_config_files dlls/amstream/Makefile"
ac_config_files="$ac_config_files dlls/appwiz.cpl/Makefile"
ac_config_files="$ac_config_files dlls/atl/Makefile"
ac_config_files="$ac_config_files dlls/avicap32/Makefile"
......@@ -23319,6 +23321,7 @@ do
"dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
"dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
"dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
"dlls/appwiz.cpl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/appwiz.cpl/Makefile" ;;
"dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
"dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
"dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
......
......@@ -1726,6 +1726,7 @@ AC_CONFIG_FILES([dlls/advapi32/tests/Makefile])
AC_CONFIG_FILES([dlls/advpack/Makefile])
AC_CONFIG_FILES([dlls/advpack/tests/Makefile])
AC_CONFIG_FILES([dlls/amstream/Makefile])
AC_CONFIG_FILES([dlls/appwiz.cpl/Makefile])
AC_CONFIG_FILES([dlls/atl/Makefile])
AC_CONFIG_FILES([dlls/avicap32/Makefile])
AC_CONFIG_FILES([dlls/avifil32/Makefile])
......
......@@ -24,6 +24,7 @@ BASEDIRS = \
advapi32 \
advpack \
amstream \
appwiz.cpl \
atl \
avicap32 \
avifil32 \
......
/*
* Add/Remove Programs English resources
*
* Copyright 2001-2002, 2008 Owen Rudge
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
{
IDS_CPL_TITLE, "Add/Remove Programs"
IDS_CPL_DESC, "Allows you to install new software, or remove existing software from your computer."
IDS_TAB1_TITLE, "Applications"
}
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = appwiz.cpl
IMPORTS = kernel32 comctl32 advapi32 shell32 user32
C_SRCS = \
appwiz.c
RC_SRCS = appwiz.rc
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend
/*
* Add/Remove Programs applet
* Partially based on Wine Uninstaller
*
* Copyright 2000 Andreas Mohr
* Copyright 2004 Hannu Valtonen
* Copyright 2005 Jonathan Ernst
* Copyright 2001-2002, 2008 Owen Rudge
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include "config.h"
#include "wine/port.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wingdi.h>
#include <winreg.h>
#include <shellapi.h>
#include <cpl.h>
#include "res.h"
WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl);
static HINSTANCE hInst;
/******************************************************************************
* Name : DllMain
* Description: Entry point for DLL file
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
LPVOID lpvReserved)
{
TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
hInst = hinstDLL;
break;
}
return TRUE;
}
/******************************************************************************
* Name : CPlApplet
* Description: Entry point for Control Panel applets
* Parameters : hwndCPL - hWnd of the Control Panel
* message - reason for calling function
* lParam1 - additional parameter
* lParam2 - additional parameter
* Returns : Dependant on message
*/
LONG CALLBACK CPlApplet(HWND hwndCPL, UINT message, LPARAM lParam1, LPARAM lParam2)
{
switch (message)
{
case CPL_INIT:
return TRUE;
case CPL_GETCOUNT:
return 1;
case CPL_INQUIRE:
{
CPLINFO *appletInfo = (CPLINFO *) lParam2;
appletInfo->idIcon = ICO_MAIN;
appletInfo->idName = IDS_CPL_TITLE;
appletInfo->idInfo = IDS_CPL_DESC;
appletInfo->lData = 0;
break;
}
}
return FALSE;
}
/*
* Add/Remove Programs resources
*
* Copyright 2001-2002, 2008 Owen Rudge
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <commctrl.h>
#include "res.h"
#include "En.rc"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
ICO_MAIN ICON "appwiz.ico"
/*
* Add/Remove Programs resources
*
* Copyright 2001-2002, 2008 Owen Rudge
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
/* Icons */
#define ICO_MAIN 1
/* Strings */
#define IDS_CPL_TITLE 1
#define IDS_CPL_DESC 2
#define IDS_TAB1_TITLE 3
......@@ -2243,6 +2243,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
11,,actxprxy.dll
11,,advapi32.dll
11,,advpack.dll
11,,appwiz.cpl
11,,cabinet.dll
11,,cmd.exe
11,,comctl32.dll
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment