KarenA
(KarenA)
1
I am not knowledgeable about declares on any platform so please excuse my ignorance about this stuff!
I am doing some Windows declares that return structures with members defined as SIZE_T.
From what I can gather from the the MS docs, am I right in assuming that those members should be defined as UInteger in an Xojo structure?
Thanks,
Karen
MarkusR
(MarkusR)
3
copied from here
https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
[quote]SIZE_T
The maximum number of bytes to which a pointer can point. Use for a count that must span the full range of a pointer.
This type is declared in BaseTsd.h as follows:
typedef ULONG_PTR SIZE_T;[/quote]
[quote]ULONG_PTR
An unsigned LONG_PTR.
This type is declared in BaseTsd.h as follows:
C++
#if defined(_WIN64)
typedef unsigned __int64 ULONG_PTR;
#else
typedef unsigned long ULONG_PTR;
#endif[/quote]
[quote]ULONG
An unsigned LONG. The range is 0 through 4294967295 decimal.
This type is declared in WinDef.h as follows:
typedef unsigned long ULONG;[/quote]
[quote]INT64
A 64-bit signed integer. The range is 9223372036854775808 through 9223372036854775807 decimal.
This type is declared in BaseTsd.h as follows:
typedef signed __int64 INT64;[/quote]
https://documentation.xojo.com/api/data_types/additional_types/uinteger.html
https://blog./2017/01/22/windows-to-xojo-data-type-conversion/
Type SIZE_T into the search above the table.