mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
- Add fontext.dll
svn path=/trunk/; revision=34135
This commit is contained in:
parent
0cac013600
commit
4f6a32920d
10 changed files with 154 additions and 0 deletions
45
reactos/dll/shellext/fontext/fontext.c
Normal file
45
reactos/dll/shellext/fontext/fontext.c
Normal 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;
|
||||||
|
}
|
6
reactos/dll/shellext/fontext/fontext.def
Normal file
6
reactos/dll/shellext/fontext/fontext.def
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
LIBRARY fontext.dll
|
||||||
|
EXPORTS
|
||||||
|
DllCanUnloadNow
|
||||||
|
DllGetClassObject
|
||||||
|
DllRegisterServer
|
||||||
|
DllUnregisterServer
|
12
reactos/dll/shellext/fontext/fontext.h
Normal file
12
reactos/dll/shellext/fontext/fontext.h
Normal 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 */
|
21
reactos/dll/shellext/fontext/fontext.rbuild
Normal file
21
reactos/dll/shellext/fontext/fontext.rbuild
Normal 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>
|
10
reactos/dll/shellext/fontext/fontext.rc
Normal file
10
reactos/dll/shellext/fontext/fontext.rc
Normal 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"
|
9
reactos/dll/shellext/fontext/lang/en-US.rc
Normal file
9
reactos/dll/shellext/fontext/lang/en-US.rc
Normal 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
|
||||||
|
|
38
reactos/dll/shellext/fontext/regsvr.c
Normal file
38
reactos/dll/shellext/fontext/regsvr.c
Normal 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();
|
||||||
|
}
|
6
reactos/dll/shellext/fontext/resource.h
Normal file
6
reactos/dll/shellext/fontext/resource.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef __RESOURCE__H
|
||||||
|
#define __RESOURCE__H
|
||||||
|
|
||||||
|
#define IDS_REACTOS_FONTS_FOLDER 151
|
||||||
|
|
||||||
|
#endif /* __RESOURCE__H */
|
4
reactos/dll/shellext/fontext/rsrc.rc
Normal file
4
reactos/dll/shellext/fontext/rsrc.rc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#include <windows.h>
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
#include "lang/en-US.rc"
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue