H
Herfried K. Wagner [MVP]
Mike S said:But again, if you just declare this as the API Viewer declares it, with
everything as Long:
Private Declare Function ExitWindowsEx Lib "user32.dll" Alias
"ExitWindowsEx" ( _
ByVal uFlags As Long, ByVal dwReserved As Long _
) As Long
It will work just as good.
No, it won't work in VB.NET.
As I said, Long and Int32 are *equivalent*
No, they aren't. 'Long' maps to 'Int64' and thus the code will break.
as far as API Declares go because they are both 32 bits wide on 32-bit
versions of Windows.
No, 'Long' is 64 bits wide on both 32-bit and 64-bit systems.
As for Boolean and Long in the return values, it
actually doesn't matter if they are two different sizes
Sure, it matters. 'BOOL' is a 32-bit type and thus maps perfectly to
'Boolean' and/or 'Int32'.