I'm trying to call GetScrollInfo using PInvoke:
BOOL GetScrollInfo(
_In_ HWND hwnd,
_In_ int fnBar,
_Inout_ LPSCROLLINFO lpsi
);
I'm looking for some confirmation that int
is the correct managed type for this as specified on pinvoke.net:
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool GetScrollInfo(IntPtr hwnd, int fnBar, ref SCROLLINFO lpsi);
What's the correct integer size for an int
? Is int = int
?