Skip to content
Discussion options

You must be logged in to vote

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);
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vitkuz573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant