I am trying to import some winapi functions into my wpf project(written in c#) but I do not know how to "convert" some of their paramaters, for example the function
BOOL WINAPI GetClientRect(
_In_ HWND hWnd,
_Out_ LPRECT lpRect
);
takes a pointer to a RECT struct and modifies its contents. If I were to import this function using the DllImport attribute it would look like:
[DllImport("user32.dll"]
public static extern bool GetClientRect(IntPtr hwnd, ???);
How do I handle the pointer to RECT object?