Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When did WPARAM change from being signed to unsigned?

In Delphi 6 WPARAM is declared as being signed:

WPARAM = Longint;

In Delphi 2010 WPARAM is declared as being signed:

WPARAM = INT_PTR;

But in XE2 it is declared as being unsigned:

WPARAM = UINT_PTR;

The official Windows definition is:

typedef UINT_PTR WPARAM;

This matches with XE2.


Does anyone know whether the change was made for XE or for XE2?

like image 371
David Heffernan Avatar asked Oct 20 '11 14:10

David Heffernan


1 Answers

In Delphi XE WPARAM = INT_PTR; so the change was introduced in XE2.

like image 78
RRUZ Avatar answered Nov 08 '22 19:11

RRUZ