Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "WINDOWINFO" in [All]

Structures

.
Summary
The WINDOWINFO structure contains window information.
.

struct WINDOWINFO

.

    public WINDOWINFO(Boolean ?   filler)   :   this()   // Allows automatic initialization of "cbSize" with "new WINDOWINFO(null/true/false)".

.

        cbSize = (UInt32)(Marshal.SizeOf(typeof( WINDOWINFO )));

.

<StructLayout(LayoutKind.Sequential)> Structure WINDOWINFO

.
Documentation
[WINDOWINFO] on MSDN

ntdll

.

    ProcessWindowInformation, // 50, q: PROCESS_WINDOW_INFORMATION

user32

.
Summary
.

private static extern bool GetWindowInfo(IntPtr hwnd, ref WINDOWINFO pwi);

.

Public Declare Auto Function GetWindowInfo Lib "user32" _

.

(ByVal hwnd As IntPtr, ByRef pwi As WINDOWINFO) As Boolean

.

Public Shared Function GetWindowInfo(ByVal hwnd As IntPtr, ByRef pwi As WINDOWINFO) As Boolean

.

WINDOWINFO

.

You must assign the cbSize parameter prior to calling GetWindowInfo(). For example:

.

    WINDOWINFO info = new WINDOWINFO();

.

    GetWindowInfo(Handle, ref info);

.

    Dim info As New WINDOWINFO

.

    GetWindowInfo(Handle, info)

.

To get a WINDOWINFO see http://pinvoke.net/default.aspx/Structures.WINDOWINFO

.
Documentation
[GetWindowInfo] on MSDN

kernel32

.

    // http://pinvoke.net/default.aspx/kernel32/SetConsoleWindowInfo.html

.

    static extern bool SetConsoleWindowInfo(


 
Access PInvoke.net directly from VS: