SetWindowPlacement (user32)
Last changed: -73.47.171.17

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern bool SetWindowPlacement(IntPtr hWnd,
   [In] ref WINDOWPLACEMENT lpwndpl);

VB Signature:

<DllImport("user32.dll")> _
Public Shared Function SetWindowPlacement( _
     ByVal hWnd As IntPtr, _
     ByRef lpwndpl As WINDOWPLACEMENT) As Boolean
End Function

User-Defined Types:

WINDOWPLACEMENT.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

WINDOWPLACEMENT param = new WINDOWPLACEMENT();

param.length = Marshal.SizeOf(typeof(WINDOWPLACEMENT));

param.showCmd = 1; //SW_SHOWNORMAL

SetWindowPlacement(this.Handle, ref param);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation