reactos/dll/win32/t2embed/t2embed.c
2013-06-16 22:01:41 +00:00

210 lines
4.3 KiB
C

/*
* PROJECT: Font Embedding Dll
* FILE: dll\win32\t2embed\t2embed.c
* PURPOSE: Main file
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
*/
#define WIN32_NO_STATUS
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <t2embapi.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(t2embed);
LONG
WINAPI
TTCharToUnicode(HDC hDC,
UCHAR* pucCharCodes,
ULONG ulCharCodeSize,
USHORT* pusShortCodes,
ULONG ulShortCodeSize,
ULONG ulFlags)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTDeleteEmbeddedFont(HANDLE hFontReference,
ULONG ulFlags,
ULONG* pulStatus)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTEmbedFont(HDC hDC,
ULONG ulFlags,
ULONG ulCharSet,
ULONG* pulPrivStatus,
ULONG* pulStatus,
WRITEEMBEDPROC lpfnWriteToStream,
LPVOID lpvWriteStream,
USHORT* pusCharCodeSet,
USHORT usCharCodeCount,
USHORT usLanguage,
TTEMBEDINFO* pTTEmbedInfo)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTEmbedFontFromFileA(HDC hDC,
LPCSTR szFontFileName,
USHORT usTTCIndex,
ULONG ulFlags,
ULONG ulCharSet,
ULONG* pulPrivStatus,
ULONG* pulStatus,
WRITEEMBEDPROC lpfnWriteToStream,
LPVOID lpvWriteStream,
USHORT* pusCharCodeSet,
USHORT usCharCodeCount,
USHORT usLanguage,
TTEMBEDINFO* pTTEmbedInfo)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTEnableEmbeddingForFacename(LPSTR lpszFacename,
BOOL bEnable)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTGetEmbeddedFontInfo(ULONG ulFlags,
ULONG* pulPrivStatus,
ULONG ulPrivs,
ULONG* pulStatus,
READEMBEDPROC lpfnReadFromStream,
LPVOID lpvReadStream,
TTLOADINFO* pTTLoadInfo)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTGetEmbeddingType(HDC hDC,
ULONG* pulPrivStatus)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTIsEmbeddingEnabled(HDC hDC,
BOOL* pbEnabled)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTIsEmbeddingEnabledForFacename(LPSTR lpszFacename,
BOOL* pbEnabled)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTLoadEmbeddedFont(HANDLE *phFontReference,
ULONG ulFlags,
ULONG* pulPrivStatus,
ULONG ulPrivs,
ULONG* pulStatus,
READEMBEDPROC lpfnReadFromStream,
LPVOID lpvReadStream,
LPWSTR szWinFamilyName,
LPSTR szMacFamilyName,
TTLOADINFO* pTTLoadInfo)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTRunValidationTests(HDC hDC,
TTVALIDATIONTESTPARAMS* pTestParam)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTEmbedFontEx(HDC hDC,
ULONG ulFlags,
ULONG ulCharSet,
ULONG* pulPrivStatus,
ULONG* pulStatus,
WRITEEMBEDPROC lpfnWriteToStream,
LPVOID lpvWriteStream,
ULONG* pulCharCodeSet,
USHORT usCharCodeCount,
USHORT usLanguage,
TTEMBEDINFO* pTTEmbedInfo)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTRunValidationTestsEx(HDC hDC,
TTVALIDATIONTESTPARAMSEX* pTestParam)
{
UNIMPLEMENTED;
return E_NONE;
}
LONG
WINAPI
TTGetNewFontName(HANDLE* phFontReference,
LPWSTR szWinFamilyName,
long cchMaxWinName,
LPSTR szMacFamilyName,
long cchMaxMacName)
{
UNIMPLEMENTED;
return E_NONE;
}
BOOL
WINAPI
DllMain(IN HINSTANCE hinstDLL,
IN DWORD dwReason,
IN LPVOID lpvReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
break;
}
return TRUE;
}