[DllImport("user32.dll")]
static extern bool CloseWindow(IntPtr hWnd);
Private Declare Function CloseWindow Lib "user32" (ByVal Hwnd As IntPtr) As Boolean
None.
The CloseWindow function minimizes (but does not destroy) the specified window.
To destroy a window, an application must use the DestroyWindow function.
Please add some!
[Visual Basic.NET]
CloseWindow(Me.Object.Handle)
[C#.NET]
// Close the foreground window
CloseWindow(GetForeGroundWindow());
Do you know one? Please contribute it!