[PATCH] Add TTGetEmbeddingType stub
Nikolay Sivov
nsivov at codeweavers.com
Tue Mar 30 12:48:32 CDT 2010
---
dlls/t2embed/main.c | 7 +++++++
dlls/t2embed/t2embed.spec | 2 +-
include/t2embapi.h | 8 ++++++++
3 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c
index c9c5dc5..a0abc57 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 ed5d25b..828501c 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 f199764..d0ddef2 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
--
1.5.6.5
--=-OIk8Vf5lmQ71JVV/9BnT--
More information about the wine-patches
mailing list