GetWindow (user32)
Last changed: -73.246.221.57

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);

enum GetWindow_Cmd {
    GW_HWNDFIRST = 0,
    GW_HWNDLAST = 1,
    GW_HWNDNEXT = 2,
    GW_HWNDPREV = 3,
    GW_OWNER = 4,
    GW_CHILD = 5,
    GW_ENABLEDPOPUP = 6
}

VB Signature:

Declare Auto Function GetWindow Lib "user32.dll" ( _
   ByVal hWnd As IntPtr, ByVal uCmd As UInt32) As IntPtr

Notes:

None

Tips & Tricks:

Please add some!

Sample Code:

// Get the handle to a dialog
    IntPtr dlgHandle = GetWindow(myProcess.MainWindowHandle,
                (int)GetWindow_Cmd.GW_ENABLEDPOPUP);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
GetWindow on MSDN