[StructLayout(LayoutKind.Explicit)]
public struct RAPIINIT
{
[FieldOffset(0)] public int cbsize;
[FieldOffset(4)] public System.IntPtr heRapiInit;
[FieldOffset(8)] public int hrRapiInit;
};
<StructLayout(LayoutKind.Sequential, Pack:=4)> _
Private Structure RAPIINIT
Public cbsize As Integer
Public heRapiInit As Integer
Public hrRapiInit As Integer
End Structure
None.
This structure is 32-bit specific due to its use of explicit layout. Is that really necessary?
HRESULT is void as a function return type, or int as a struct variable or function parameter. Beware!