Desktop Functions: Smart Device Functions:
|
Search Results for "WINDOWINFO" in [All]user32
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 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 Structures2: WINDOWINFO
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 kernel32
// http://pinvoke.net/default.aspx/kernel32/SetConsoleWindowInfo.html
static extern bool SetConsoleWindowInfo( ntdll
ProcessWindowInformation, // 50, q: PROCESS_WINDOW_INFORMATION |