I Want SystemParametersInfoA to return a System.Drawing.Rectangle but i have no idea how to proceed.
Here is my code so far:
[DllImport("user32.dll")]
static extern bool SystemParametersInfo(uint uiAction, uint uiParam, out IntPtr pvParam, uint fWinIni);
const uint SPI_GETWORKAREA = 0x0030;
void GetRect()
{
IntPtr WorkAreaRect;
SystemParametersInfo(SPI_GETWORKAREA, 0, out WorkAreaRect, 0);
}