Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
Private Declare Function CloseWindow Lib "user32" (ByVal Hwnd As IntPtr) As Boolean
User-Defined Types:
None.
Notes:
The CloseWindow function minimizes (but does not destroy) the specified window.
To destroy a window, an application must use the DestroyWindow function.
Tips & Tricks:
Please add some!
Sample Code:
[Visual Basic.NET]
CloseWindow(Me.Object.Handle)
[C#.NET]
// Close the foreground window
CloseWindow(GetForeGroundWindow());
Alternative Managed API:
Do you know one? Please contribute it!
The CloseWindowStation API
4/1/2020 3:55:48 AM - -172.194.121.210
The CloseWindowStation API
4/1/2020 3:55:48 AM - -172.194.121.210
Destroys the specified window.
12/20/2022 9:07:18 PM - ksgfk-176.122.161.184
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).