-
And I'm trying to get the work area via SystemParametersInfo, but I don't understand how to use it correctly? My code: public static unsafe Rectangle WorkingArea
{
get
{
fixed (RECT* rc = new RECT())
{
SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETWORKAREA, 0, rc, 0);
return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom);
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
vitkuz573
Nov 17, 2022
Replies: 1 comment
-
The issue is resolved as follows: public static unsafe Rectangle WorkingArea
{
get
{
var rc = new RECT();
SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETWORKAREA, 0, &rc, 0);
return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vitkuz573
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue is resolved as follows: