Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2020-10

declaration of GetCharacterPlacementW(

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort
to Martin

Op 05/10/2020 om 01:31 schreef Martin via fpc-devel:

Show quoted text 8 lines
function GetCharacterPlacementW(DC: HDC; p2: LPWSTR; p3, p4: BOOL; var p5: TGCPResults; p6: DWORD): DWORD; external 'gdi32' name 'GetCharacterPlacementW'; Why are p3 and p4 Bool? They should be both int? https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getcharacterplacementw

The var parameter generation suggests it is old, original API generation

Maybe the type changed in MSDN over time. Some things got flipped when the win9x and winnt winapi implementations were synchronized.

Please file a bug, and I'll add a correct overload (with int and without VAR param etc), and move this declaration to legacy

Reply by email