mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
implement GetStringBitmapA (left todo implement it in win32k.sys)
svn path=/trunk/; revision=28726
This commit is contained in:
parent
abe208bcc5
commit
d9ec9c0779
1 changed files with 27 additions and 5 deletions
|
@ -271,15 +271,37 @@ GetGlyphIndicesA(
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
UINT
|
||||
STDCALL
|
||||
GetStringBitmapA(HDC hdc,LPSTR psz,BOOL unknown,UINT cj,BYTE *lpSB)
|
||||
GetStringBitmapA(HDC hdc,
|
||||
LPSTR psz,
|
||||
BOOL DoCall,
|
||||
UINT cj,
|
||||
BYTE *lpSB)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
|
||||
NTSTATUS Status;
|
||||
PWSTR pwsz;
|
||||
UINT retValue = 0;
|
||||
|
||||
if (DoCall)
|
||||
{
|
||||
Status = HEAP_strdupA2W ( &pwsz, psz );
|
||||
if ( !NT_SUCCESS (Status) )
|
||||
{
|
||||
SetLastError (RtlNtStatusToDosError(Status));
|
||||
}
|
||||
else
|
||||
{
|
||||
retValue = NtGdiGetStringBitmapW(hdc, pwsz, 1, lpSB, cj);
|
||||
HEAP_free ( pwsz );
|
||||
}
|
||||
}
|
||||
|
||||
return retValue;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue