mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
- partly implement GetFontResourceInfoW
- Remove GetFontResourceInfo stub svn path=/trunk/; revision=27023
This commit is contained in:
parent
c77aba633c
commit
cf7825f156
|
@ -386,7 +386,6 @@ GetEUDCTimeStampExW@4
|
||||||
GetFontAssocStatus@4
|
GetFontAssocStatus@4
|
||||||
GetFontData@20=NtGdiGetFontData@20
|
GetFontData@20=NtGdiGetFontData@20
|
||||||
GetFontLanguageInfo@4
|
GetFontLanguageInfo@4
|
||||||
GetFontResourceInfo@16
|
|
||||||
GetFontResourceInfoW@16
|
GetFontResourceInfoW@16
|
||||||
GetFontUnicodeRanges@8
|
GetFontUnicodeRanges@8
|
||||||
GetGlyphIndicesA@20
|
GetGlyphIndicesA@20
|
||||||
|
|
|
@ -1394,24 +1394,6 @@ gdiPlaySpoolStream(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
DWORD
|
|
||||||
STDCALL
|
|
||||||
GetFontResourceInfo(
|
|
||||||
DWORD a0,
|
|
||||||
DWORD a1,
|
|
||||||
DWORD a2,
|
|
||||||
DWORD a3
|
|
||||||
)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -340,4 +340,48 @@ GetTextFaceA( HDC hdc, INT count, LPSTR name )
|
||||||
return res;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue