[PATCH] inetcpl: Add initial applet

Detlef Riekenberg wine.dev at web.de
Thu May 13 16:31:55 CDT 2010


---
 dlls/inetcpl.cpl/Makefile.in      |   15 ++++++
 dlls/inetcpl.cpl/cpl_En.rc        |   31 ++++++++++++
 dlls/inetcpl.cpl/inetcpl.c        |   99 +++++++++++++++++++++++++++++++++++++
 dlls/inetcpl.cpl/inetcpl.cpl.spec |   27 ++++++++++
 dlls/inetcpl.cpl/inetcpl.h        |   29 +++++++++++
 dlls/inetcpl.cpl/inetcpl.rc       |   36 +++++++++++++
 6 files changed, 237 insertions(+), 0 deletions(-)
 create mode 100644 dlls/inetcpl.cpl/Makefile.in
 create mode 100644 dlls/inetcpl.cpl/cpl_En.rc
 create mode 100644 dlls/inetcpl.cpl/inetcpl.c
 create mode 100644 dlls/inetcpl.cpl/inetcpl.cpl.spec
 create mode 100644 dlls/inetcpl.cpl/inetcpl.h
 create mode 100644 dlls/inetcpl.cpl/inetcpl.rc

diff --git a/dlls/inetcpl.cpl/Makefile.in b/dlls/inetcpl.cpl/Makefile.in
new file mode 100644
index 0000000..f3d4d5d
--- /dev/null
+++ b/dlls/inetcpl.cpl/Makefile.in
@@ -0,0 +1,15 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = inetcpl.cpl
+IMPORTS   = kernel32
+
+C_SRCS = \
+	inetcpl.c
+
+RC_SRCS = \
+	inetcpl.rc \
+	cpl_En.rc
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/inetcpl.cpl/cpl_En.rc b/dlls/inetcpl.cpl/cpl_En.rc
new file mode 100644
index 0000000..d85301a
--- /dev/null
+++ b/dlls/inetcpl.cpl/cpl_En.rc
@@ -0,0 +1,31 @@
+/*
+ * Internet control panel applet
+ *
+ * Copyright 2010 Detlef Riekenberg
+ *
+ * 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 "inetcpl.h"
+
+LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
+
+STRINGTABLE DISCARDABLE
+BEGIN
+    IDS_CPL_NAME        "Internet Settings"
+    IDS_CPL_INFO        "Configure Wine Internet Browser and related settings" 
+END
+
diff --git a/dlls/inetcpl.cpl/inetcpl.c b/dlls/inetcpl.cpl/inetcpl.c
new file mode 100644
index 0000000..f518fca
--- /dev/null
+++ b/dlls/inetcpl.cpl/inetcpl.c
@@ -0,0 +1,99 @@
+/*
+ * Internet control panel applet
+ *
+ * Copyright 2010 Detlef Riekenberg
+ *
+ * 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
+ *
+ */
+
+#define NONAMELESSUNION
+
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
+#include <cpl.h>
+
+#include "wine/debug.h"
+
+#include "inetcpl.h"
+
+
+WINE_DEFAULT_DEBUG_CHANNEL(inetcpl);
+
+/*********************************************************************
+ *  DllMain (inetcpl.@)
+ */
+BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
+{
+    TRACE("(%p, %d, %p)\n", hdll, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;  /* prefer native version */
+
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(hdll);
+    }
+    return TRUE;
+}
+
+/*********************************************************************
+ * CPlApplet (inetcpl.@)
+ *
+ * Control Panel entry point
+ *
+ * PARAMS
+ *  hWnd    [I] Handle for the Control Panel Window
+ *  command [I] CPL_* Command
+ *  lParam1 [I] first extra Parameter
+ *  lParam2 [I] second extra Parameter
+ *
+ * RETURNS
+ *  Depends on the command
+ *
+ */
+LONG CALLBACK CPlApplet(HWND hWnd, UINT command, LPARAM lParam1, LPARAM lParam2)
+{
+    TRACE("(%p, %u, 0x%lx, 0x%lx)\n", hWnd, command, lParam1, lParam2);
+
+    switch (command)
+    {
+        case CPL_INIT:
+            return TRUE;
+
+        case CPL_GETCOUNT:
+            return 1;
+
+        case CPL_INQUIRE:
+        {
+            CPLINFO *appletInfo = (CPLINFO *) lParam2;
+
+            appletInfo->idIcon = 0;
+            appletInfo->idName = IDS_CPL_NAME;
+            appletInfo->idInfo = IDS_CPL_INFO;
+            appletInfo->lData = 0;
+            return TRUE;
+        }
+
+        case CPL_DBLCLK:
+            FIXME("not implemented yet\n");
+            break;
+    }
+
+    return FALSE;
+}
+
diff --git a/dlls/inetcpl.cpl/inetcpl.cpl.spec b/dlls/inetcpl.cpl/inetcpl.cpl.spec
new file mode 100644
index 0000000..bdf1cd8
--- /dev/null
+++ b/dlls/inetcpl.cpl/inetcpl.cpl.spec
@@ -0,0 +1,27 @@
+
+@ stub ClearMyTracksByProcessW
+@ stub AddInternetPropertySheets
+@ stub AddInternetPropertySheetsEx
+@ stdcall CPlApplet(long long long long)
+@ stub DisplayPopupWindowManagementDialog
+@ stub DllInstall
+@ stub GetAddSitesDisplayUrl
+@ stub ImportExportPFX
+@ stub LaunchAddSitesDialog
+@ stub LaunchConnectionDialog
+@ stub LaunchInternetControlPanel
+@ stub LaunchPerSitePrivacyActionDialog
+@ stub LaunchPopupWindowManagementDialog
+@ stub LaunchPrivacyDialog
+@ stub LaunchSecurityDialog
+@ stub LaunchSecurityDialogEx
+@ stub LaunchSiteCertDialog
+@ stub OpenFontsDialog
+@ stub OpenFontsDialogEx
+@ stub OpenLanguageDialog
+@ stub ResetIEtoDefaults
+@ stub ShowDeleteBrowsingHistoryDialog
+@ stub ShowFeedOptionsDialog
+@ stub ShowLanguageDialog
+@ stub SiteCert_RunFromCmdLine
+
diff --git a/dlls/inetcpl.cpl/inetcpl.h b/dlls/inetcpl.cpl/inetcpl.h
new file mode 100644
index 0000000..6c217fa
--- /dev/null
+++ b/dlls/inetcpl.cpl/inetcpl.h
@@ -0,0 +1,29 @@
+/*
+ * Internet control panel applet
+ *
+ * Copyright 2010 Detlef Riekenberg
+ *
+ * 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 <winuser.h>
+
+/* strings */
+#define IDS_CPL_NAME        1
+#define IDS_CPL_INFO        2
+
+
diff --git a/dlls/inetcpl.cpl/inetcpl.rc b/dlls/inetcpl.cpl/inetcpl.rc
new file mode 100644
index 0000000..b7b0910
--- /dev/null
+++ b/dlls/inetcpl.cpl/inetcpl.rc
@@ -0,0 +1,36 @@
+/*
+ * Internet control panel applet
+ *
+ * Copyright 2010 Detlef Riekenberg
+ *
+ * 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 "inetcpl.h"
+
+#define WINE_FILENAME_STR "inetcpl.cpl"
+#define WINE_FILEDESCRIPTION_STR "Internet Control Panel"
+
+/* Same Version as WinXP_sp2 */
+#define WINE_FILEVERSION      6,0,2800,1106
+#define WINE_FILEVERSION_STR "6.00.2800.1106"
+
+#define WINE_PRODUCTVERSION      6,0,2800,1106
+#define WINE_PRODUCTVERSION_STR "6.00.2800.1106"
+
+#include "wine/wine_common_ver.rc"
+
+
-- 
1.7.0.4




More information about the wine-patches mailing list