[ros-diffs] [dchapyshev] 34135: - Add fontext.dll

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Fri Jun 27 19:34:09 CEST 2008


Author: dchapyshev
Date: Fri Jun 27 12:34:08 2008
New Revision: 34135

URL: http://svn.reactos.org/svn/reactos?rev=34135&view=rev
Log:
- Add fontext.dll

Added:
    trunk/reactos/dll/shellext/fontext/
    trunk/reactos/dll/shellext/fontext/fontext.c   (with props)
    trunk/reactos/dll/shellext/fontext/fontext.def   (with props)
    trunk/reactos/dll/shellext/fontext/fontext.h   (with props)
    trunk/reactos/dll/shellext/fontext/fontext.rbuild   (with props)
    trunk/reactos/dll/shellext/fontext/fontext.rc   (with props)
    trunk/reactos/dll/shellext/fontext/lang/
    trunk/reactos/dll/shellext/fontext/lang/en-US.rc   (with props)
    trunk/reactos/dll/shellext/fontext/regsvr.c   (with props)
    trunk/reactos/dll/shellext/fontext/resource.h   (with props)
    trunk/reactos/dll/shellext/fontext/rsrc.rc   (with props)
Modified:
    trunk/reactos/dll/shellext/shellext.rbuild

Added: trunk/reactos/dll/shellext/fontext/fontext.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/fontext.c?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/fontext.c (added)
+++ trunk/reactos/dll/shellext/fontext/fontext.c [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,45 @@
+/*
+ *
+ * PROJECT:         fontext.dll
+ * FILE:            dll/shellext/fontext/fontext.c
+ * PURPOSE:         fontext.dll
+ * PROGRAMMER:      Dmitry Chapyshev (dmitry at reactos.org)
+ * UPDATE HISTORY:
+ *      10-06-2008  Created
+ */
+
+#include "fontext.h"
+
+static HINSTANCE hInstance;
+
+HRESULT WINAPI
+DllCanUnloadNow(VOID)
+{
+    DPRINT1("DllCanUnloadNow() stubs\n");
+    return S_OK;
+}
+
+HRESULT WINAPI
+DllGetClassObject(REFCLSID rclsid,
+                  REFIID riid,
+                  LPVOID *ppv)
+{
+    DPRINT1("DllGetClassObject() stubs\n");
+    return S_OK;
+}
+
+BOOL STDCALL
+DllMain(HINSTANCE hinstDLL,
+        DWORD dwReason,
+        LPVOID lpvReserved)
+{
+    switch (dwReason)
+    {
+        case DLL_PROCESS_ATTACH:
+            hInstance = hinstDLL;
+            DisableThreadLibraryCalls(hInstance);
+            break;
+    }
+
+    return TRUE;
+}

Propchange: trunk/reactos/dll/shellext/fontext/fontext.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/fontext.def
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/fontext.def?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/fontext.def (added)
+++ trunk/reactos/dll/shellext/fontext/fontext.def [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,6 @@
+LIBRARY fontext.dll
+EXPORTS
+DllCanUnloadNow
+DllGetClassObject
+DllRegisterServer
+DllUnregisterServer

Propchange: trunk/reactos/dll/shellext/fontext/fontext.def
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/fontext.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/fontext.h?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/fontext.h (added)
+++ trunk/reactos/dll/shellext/fontext/fontext.h [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,12 @@
+#ifndef __FONTEXT__H
+#define __FONTEXT__H
+
+#define COBJMACROS
+#include <windows.h>
+#include <tchar.h>
+#include <stdio.h>
+#include <shlobj.h>
+
+#include <debug.h>
+
+#endif /* __FONTEXT__H */

Propchange: trunk/reactos/dll/shellext/fontext/fontext.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/fontext.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/fontext.rbuild?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/fontext.rbuild (added)
+++ trunk/reactos/dll/shellext/fontext/fontext.rbuild [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,21 @@
+<module name="fontext" type="win32dll" baseaddress="${BASEADDRESS_FONTEXT}" installbase="system32" installname="fontext.dll" unicode="yes">
+	<importlibrary definition="fontext.def" />
+	<include base="fontext">.</include>
+	<define name="_WIN32_IE">0x0500</define>
+	<define name="_WIN32_WINNT">0x0600</define>
+	<define name="WINVER">0x0600</define>
+	<library>ntdll</library>
+	<library>kernel32</library>
+	<library>user32</library>
+	<library>gdi32</library>
+	<library>ole32</library>
+	<library>uuid</library>
+	<library>msvcrt</library>
+	<library>shlwapi</library>
+	<library>lz32</library>
+	<library>advapi32</library>
+	<library>setupapi</library>
+	<file>fontext.c</file>
+	<file>regsvr.c</file>
+	<file>fontext.rc</file>
+</module>

Propchange: trunk/reactos/dll/shellext/fontext/fontext.rbuild
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/fontext.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/fontext.rc?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/fontext.rc (added)
+++ trunk/reactos/dll/shellext/fontext/fontext.rc [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,10 @@
+#include <windows.h>
+#include "resource.h"
+
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION	"ReactOS Font Folder\0"
+#define REACTOS_STR_INTERNAL_NAME	"fontext\0"
+#define REACTOS_STR_ORIGINAL_FILENAME	"fontext.dll\0"
+#include <reactos/version.rc>
+
+#include "rsrc.rc"

Propchange: trunk/reactos/dll/shellext/fontext/fontext.rc
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/lang/en-US.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/lang/en-US.rc?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/lang/en-US.rc (added)
+++ trunk/reactos/dll/shellext/fontext/lang/en-US.rc [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,9 @@
+// Don't translate this file at current time
+
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+STRINGTABLE
+BEGIN
+    IDS_REACTOS_FONTS_FOLDER "ReactOS Font Folder"
+END
+

Propchange: trunk/reactos/dll/shellext/fontext/lang/en-US.rc
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/regsvr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/regsvr.c?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/regsvr.c (added)
+++ trunk/reactos/dll/shellext/fontext/regsvr.c [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,38 @@
+/*
+ *
+ * PROJECT:         fontext.dll
+ * FILE:            dll/shellext/fontext/regsvr.c
+ * PURPOSE:         fontext.dll
+ * PROGRAMMER:      Dmitry Chapyshev (dmitry at reactos.org)
+ * UPDATE HISTORY:
+ *      10-06-2008  Created
+ */
+
+#include <windows.h>
+#include <ole2.h>
+
+#include <fontext.h>
+
+static HRESULT
+REGSVR_RegisterServer()
+{
+    return S_OK;
+}
+
+static HRESULT
+REGSVR_UnregisterServer()
+{
+    return S_OK;
+}
+
+HRESULT WINAPI
+DllRegisterServer(VOID)
+{
+    return REGSVR_RegisterServer();
+}
+
+HRESULT WINAPI
+DllUnregisterServer(VOID)
+{
+    return REGSVR_UnregisterServer();
+}

Propchange: trunk/reactos/dll/shellext/fontext/regsvr.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/resource.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/resource.h?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/resource.h (added)
+++ trunk/reactos/dll/shellext/fontext/resource.h [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,6 @@
+#ifndef __RESOURCE__H
+#define __RESOURCE__H
+
+#define IDS_REACTOS_FONTS_FOLDER 151
+
+#endif /* __RESOURCE__H */

Propchange: trunk/reactos/dll/shellext/fontext/resource.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/shellext/fontext/rsrc.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/fontext/rsrc.rc?rev=34135&view=auto
==============================================================================
--- trunk/reactos/dll/shellext/fontext/rsrc.rc (added)
+++ trunk/reactos/dll/shellext/fontext/rsrc.rc [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -1,0 +1,4 @@
+#include <windows.h>
+#include "resource.h"
+
+#include "lang/en-US.rc"

Propchange: trunk/reactos/dll/shellext/fontext/rsrc.rc
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: trunk/reactos/dll/shellext/shellext.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/shellext.rbuild?rev=34135&r1=34134&r2=34135&view=diff
==============================================================================
--- trunk/reactos/dll/shellext/shellext.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/shellext/shellext.rbuild [iso-8859-1] Fri Jun 27 12:34:08 2008
@@ -10,6 +10,9 @@
 	<directory name="devcpux">
 		<xi:include href="devcpux/devcpux.rbuild" />
 	</directory>
+	<directory name="fontext">
+		<xi:include href="fontext/fontext.rbuild" />
+	</directory>
 	<directory name="slayer">
 		<xi:include href="slayer/slayer.rbuild" />
 	</directory>



More information about the Ros-diffs mailing list