xref: /reactos/dll/win32/t2embed/stubs.c (revision c2c66aff)
1 /*
2  * PROJECT:         Font Embedding Dll
3  * FILE:            dll\win32\t2embed\stubs.c
4  * PURPOSE:         Stubs file
5  * PROGRAMMERS:     Dmitry Chapyshev (dmitry@reactos.org)
6  */
7 
8 #define WIN32_NO_STATUS
9 #include <windef.h>
10 #include <t2embapi.h>
11 #include <debug.h>
12 
13 LONG
14 WINAPI
TTCharToUnicode(HDC hDC,UCHAR * pucCharCodes,ULONG ulCharCodeSize,USHORT * pusShortCodes,ULONG ulShortCodeSize,ULONG ulFlags)15 TTCharToUnicode(HDC hDC,
16                 UCHAR* pucCharCodes,
17                 ULONG ulCharCodeSize,
18                 USHORT* pusShortCodes,
19                 ULONG ulShortCodeSize,
20                 ULONG ulFlags)
21 {
22     UNIMPLEMENTED;
23     return E_NONE;
24 }
25 
26 LONG
27 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)28 TTEmbedFontFromFileA(HDC hDC,
29                      LPCSTR szFontFileName,
30                      USHORT usTTCIndex,
31                      ULONG ulFlags,
32                      ULONG ulCharSet,
33                      ULONG* pulPrivStatus,
34                      ULONG* pulStatus,
35                      WRITEEMBEDPROC lpfnWriteToStream,
36                      LPVOID lpvWriteStream,
37                      USHORT* pusCharCodeSet,
38                      USHORT usCharCodeCount,
39                      USHORT usLanguage,
40                      TTEMBEDINFO* pTTEmbedInfo)
41 {
42     UNIMPLEMENTED;
43     return E_NONE;
44 }
45 
46 LONG
47 WINAPI
TTEnableEmbeddingForFacename(LPSTR lpszFacename,BOOL bEnable)48 TTEnableEmbeddingForFacename(LPSTR lpszFacename,
49                              BOOL bEnable)
50 {
51     UNIMPLEMENTED;
52     return E_NONE;
53 }
54 
55 LONG
56 WINAPI
TTGetEmbeddedFontInfo(ULONG ulFlags,ULONG * pulPrivStatus,ULONG ulPrivs,ULONG * pulStatus,READEMBEDPROC lpfnReadFromStream,LPVOID lpvReadStream,TTLOADINFO * pTTLoadInfo)57 TTGetEmbeddedFontInfo(ULONG ulFlags,
58                       ULONG* pulPrivStatus,
59                       ULONG ulPrivs,
60                       ULONG* pulStatus,
61                       READEMBEDPROC lpfnReadFromStream,
62                       LPVOID lpvReadStream,
63                       TTLOADINFO* pTTLoadInfo)
64 {
65     UNIMPLEMENTED;
66     return E_NONE;
67 }
68 
69 LONG
70 WINAPI
TTRunValidationTests(HDC hDC,TTVALIDATIONTESTPARAMS * pTestParam)71 TTRunValidationTests(HDC hDC,
72                      TTVALIDATIONTESTPARAMS* pTestParam)
73 {
74     UNIMPLEMENTED;
75     return E_NONE;
76 }
77 
78 LONG
79 WINAPI
TTEmbedFontEx(HDC hDC,ULONG ulFlags,ULONG ulCharSet,ULONG * pulPrivStatus,ULONG * pulStatus,WRITEEMBEDPROC lpfnWriteToStream,LPVOID lpvWriteStream,ULONG * pulCharCodeSet,USHORT usCharCodeCount,USHORT usLanguage,TTEMBEDINFO * pTTEmbedInfo)80 TTEmbedFontEx(HDC hDC,
81               ULONG ulFlags,
82               ULONG ulCharSet,
83               ULONG* pulPrivStatus,
84               ULONG* pulStatus,
85               WRITEEMBEDPROC lpfnWriteToStream,
86               LPVOID lpvWriteStream,
87               ULONG* pulCharCodeSet,
88               USHORT usCharCodeCount,
89               USHORT usLanguage,
90               TTEMBEDINFO* pTTEmbedInfo)
91 {
92     UNIMPLEMENTED;
93     return E_NONE;
94 }
95 
96 LONG
97 WINAPI
TTRunValidationTestsEx(HDC hDC,TTVALIDATIONTESTPARAMSEX * pTestParam)98 TTRunValidationTestsEx(HDC hDC,
99                        TTVALIDATIONTESTPARAMSEX* pTestParam)
100 {
101     UNIMPLEMENTED;
102     return E_NONE;
103 }
104 
105 LONG
106 WINAPI
TTGetNewFontName(HANDLE * phFontReference,LPWSTR szWinFamilyName,long cchMaxWinName,LPSTR szMacFamilyName,long cchMaxMacName)107 TTGetNewFontName(HANDLE* phFontReference,
108                  LPWSTR szWinFamilyName,
109                  long cchMaxWinName,
110                  LPSTR szMacFamilyName,
111                  long cchMaxMacName)
112 {
113     UNIMPLEMENTED;
114     return E_NONE;
115 }
116