- partly implement GetFontResourceInfoW

- Remove GetFontResourceInfo stub

svn path=/trunk/; revision=27023
This commit is contained in:
Timo Kreuzer 2007-06-06 11:15:27 +00:00
parent c77aba633c
commit cf7825f156
4 changed files with 44 additions and 36 deletions

View file

@ -386,7 +386,6 @@ GetEUDCTimeStampExW@4
GetFontAssocStatus@4
GetFontData@20=NtGdiGetFontData@20
GetFontLanguageInfo@4
GetFontResourceInfo@16
GetFontResourceInfoW@16
GetFontUnicodeRanges@8
GetGlyphIndicesA@20

View file

@ -1394,24 +1394,6 @@ gdiPlaySpoolStream(
return 0;
}
/*
* @unimplemented
*/
DWORD
STDCALL
GetFontResourceInfo(
DWORD a0,
DWORD a1,
DWORD a2,
DWORD a3
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/*
* @unimplemented
*/

View file

@ -229,23 +229,6 @@ UpdateICMRegKeyW(
*/
/*
* @unimplemented
*/
DWORD
STDCALL
GetFontResourceInfoW(
DWORD a0,
DWORD a1,
DWORD a2,
DWORD a3
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/*
* @unimplemented
*/

View file

@ -340,4 +340,48 @@ GetTextFaceA( HDC hdc, INT count, LPSTR name )
return res;
}
BOOL
STDCALL
GetFontResourceInfoW(
LPCWSTR lpFileName,
DWORD *pdwBufSize,
void* lpBuffer,
DWORD dwType
)
{
BOOL bRet;
UNICODE_STRING NtFileName;
if (!lpFileName || !pdwBufSize || !lpBuffer)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
if (!RtlDosPathNameToNtPathName_U(lpFileName,
&NtFileName,
NULL,
NULL))
{
SetLastError(ERROR_PATH_NOT_FOUND);
return FALSE;
}
bRet = NtGdiGetFontResourceInfoInternalW(
NtFileName.Buffer,
NtFileName.Length,
1,
*pdwBufSize,
pdwBufSize,
lpBuffer,
dwType);
RtlFreeHeap(RtlGetProcessHeap(), 0, NtFileName.Buffer);
if (!bRet)
{
return FALSE;
}
return TRUE;
}