- Add fontext.dll

svn path=/trunk/; revision=34135
This commit is contained in:
Dmitry Chapyshev 2008-06-27 17:34:08 +00:00
parent 0cac013600
commit 4f6a32920d
10 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,45 @@
/*
*
* PROJECT: fontext.dll
* FILE: dll/shellext/fontext/fontext.c
* PURPOSE: fontext.dll
* PROGRAMMER: Dmitry Chapyshev (dmitry@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;
}

View file

@ -0,0 +1,6 @@
LIBRARY fontext.dll
EXPORTS
DllCanUnloadNow
DllGetClassObject
DllRegisterServer
DllUnregisterServer

View file

@ -0,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 */

View file

@ -0,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>

View file

@ -0,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"

View file

@ -0,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

View file

@ -0,0 +1,38 @@
/*
*
* PROJECT: fontext.dll
* FILE: dll/shellext/fontext/regsvr.c
* PURPOSE: fontext.dll
* PROGRAMMER: Dmitry Chapyshev (dmitry@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();
}

View file

@ -0,0 +1,6 @@
#ifndef __RESOURCE__H
#define __RESOURCE__H
#define IDS_REACTOS_FONTS_FOLDER 151
#endif /* __RESOURCE__H */

View file

@ -0,0 +1,4 @@
#include <windows.h>
#include "resource.h"
#include "lang/en-US.rc"

View file

@ -10,6 +10,9 @@
<directory name="devcpux"> <directory name="devcpux">
<xi:include href="devcpux/devcpux.rbuild" /> <xi:include href="devcpux/devcpux.rbuild" />
</directory> </directory>
<directory name="fontext">
<xi:include href="fontext/fontext.rbuild" />
</directory>
<directory name="slayer"> <directory name="slayer">
<xi:include href="slayer/slayer.rbuild" /> <xi:include href="slayer/slayer.rbuild" />
</directory> </directory>