From b16b122091e98a4f013d4d4279b7bf15e585781f Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 30 Mar 2010 21:48:32 +0400 Subject: [PATCH] t2embed: Add TTGetEmbeddingType stub. --- dlls/t2embed/main.c | 7 +++++++ dlls/t2embed/t2embed.spec | 2 +- include/t2embapi.h | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c index c9c5dc53551..a0abc57bf2d 100644 --- a/dlls/t2embed/main.c +++ b/dlls/t2embed/main.c @@ -59,3 +59,10 @@ LONG WINAPI TTLoadEmbeddedFont(HANDLE *phFontReference, ULONG ulFlags, return E_API_NOTIMPL; } + +LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status) +{ + FIXME("(%p %p) stub\n", hDC, status); + if (status) *status = EMBED_NOEMBEDDING; + return E_API_NOTIMPL; +} diff --git a/dlls/t2embed/t2embed.spec b/dlls/t2embed/t2embed.spec index ed5d25b6698..828501c82f1 100644 --- a/dlls/t2embed/t2embed.spec +++ b/dlls/t2embed/t2embed.spec @@ -4,7 +4,7 @@ @ stub TTEmbedFontFromFileA @ stub TTEnableEmbeddingForFacename @ stub TTGetEmbeddedFontInfo -@ stub TTGetEmbeddingType +@ stdcall TTGetEmbeddingType(ptr ptr) @ stub TTIsEmbeddingEnabled @ stub TTIsEmbeddingEnabledForFacename @ stdcall TTLoadEmbeddedFont(ptr long ptr long ptr ptr ptr wstr str ptr) diff --git a/include/t2embapi.h b/include/t2embapi.h index f1997647d09..d0ddef2d515 100644 --- a/include/t2embapi.h +++ b/include/t2embapi.h @@ -39,6 +39,14 @@ typedef struct LONG WINAPI TTLoadEmbeddedFont(HANDLE*,ULONG,ULONG*,ULONG,ULONG*,READEMBEDPROC, LPVOID,LPWSTR,LPSTR,TTLOADINFO*); +/* embedding privileges */ +#define EMBED_PREVIEWPRINT 1 +#define EMBED_EDITABLE 2 +#define EMBED_INSTALLABLE 3 +#define EMBED_NOEMBEDDING 4 + +LONG WINAPI TTGetEmbeddingType(HDC, ULONG*); + #ifdef __cplusplus } #endif