I found an issue in the windows headers for types consisting an array and the pre-defined values for these types.
For example (winnt.bi):
Code: Select all
type _SID_IDENTIFIER_AUTHORITY
Value(0 to 5) as UBYTE
end type
#define SECURITY_NT_AUTHORITY (0, 0, 0, 0, 0, 5)
I cannot see a way to assign the pre-defined value to the type normally. If the () brackets in the #define are have additional {} brackets, then you can assign it normally:
Code: Select all
#define SECURITY_NT_AUTHORITY ({0, 0, 0, 0, 0, 5})
Dim exampleSID as _SID_IDENTIFIER_AUTHORITY = SECURITY_NT_AUTHORITY
The automatic translator should be edited to correct that for future releases. I'll put a manually edited winnt.bi at my git:
https://github.com/stephanbrunker/fbc_105_patch