C# Класс BrightnessTray.NativeMethods

Contains native (P/Invoke) methods and related structs and enums.
Показать файл Открыть проект

Открытые методы

Метод Описание
EnumButtonWindow ( IntPtr handle, IntPtr pointer ) : bool

Enumerates windows with the class name 'Button' and a blank window name.

EnumToolbarWindow ( IntPtr handle, IntPtr pointer ) : bool

Enumerates windows with the class name 'ToolbarWindow32'.

GetChildButtonWindows ( IntPtr parent ) : List

Returns a list of handles for windows of the class 'ToolbarWindow32'.

GetChildToolbarWindows ( IntPtr parent ) : List

Returns a list of handles for windows of the class 'ToolbarWindow32'.

IsOverClientArea ( IntPtr hWnd, IntPtr wParam, IntPtr lParam ) : bool

Checks whether the cursor is over the current window's client area.

Приватные методы

Метод Описание
CloseHandle ( IntPtr hObject ) : bool
DefWindowProc ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
DwmExtendFrameIntoClientArea ( IntPtr hWnd, MARGINS &pMarInset ) : int
DwmIsCompositionEnabled ( bool &enabled ) : int
EnumChildWindows ( IntPtr hWndParent, EnumWindowProc lpEnumFunc, IntPtr lParam ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow ) : IntPtr
GetClassName ( IntPtr hWnd, StringBuilder lpClassName, int nMaxCount ) : int
GetClientRect ( IntPtr hWnd, RECT &lpRect ) : bool
GetCursorPos ( POINT &lpPoint ) : bool
GetForegroundWindow ( ) : IntPtr
GetMonitorInfo ( IntPtr hMonitor, MONITORINFO &lpmi ) : bool
GetSystemMetrics ( SystemMetric smIndex ) : int
GetWindowRect ( IntPtr hWnd, RECT &lpRect ) : bool
GetWindowTextLength ( IntPtr hWnd ) : int
GetWindowThreadProcessId ( IntPtr hWnd, uint &lpdwProcessId ) : uint
MapWindowPoints ( IntPtr hWndFrom, IntPtr hWndTo, RECT &lpPoints, uint cPoints ) : int
MonitorFromRect ( RECT &lprc, uint dwFlags ) : IntPtr
OpenProcess ( ProcessAccessFlags dwDesiredAccess, [ bInheritHandle, uint dwProcessId ) : IntPtr
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, IntPtr &lpBuffer, int dwSize, int &lpNumberOfBytesRead ) : bool
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, RECT &lpBuffer, int dwSize, int &lpNumberOfBytesRead ) : bool
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, TBBUTTON &lpBuffer, int dwSize, int &lpNumberOfBytesRead ) : bool
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, uint &lpBuffer, int dwSize, int &lpNumberOfBytesRead ) : bool
SHAppBarMessage ( ABMsg dwMessage, APPBARDATA &pData ) : IntPtr
SendMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SendMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, TBBUTTON &lParam ) : IntPtr
SetThreadExecutionState ( uint esFlags ) : uint
Shell_NotifyIconGetRect ( NOTIFYICONIDENTIFIER &identifier, RECT &iconLocation ) : int
VirtualAllocEx ( IntPtr hProcess, IntPtr lpAddress, uint dwSize, AllocationType flAllocationType, MemoryProtection flProtect ) : IntPtr
VirtualFreeEx ( IntPtr hProcess, IntPtr lpAddress, int dwSize, FreeType dwFreeType ) : bool

Описание методов

EnumButtonWindow() публичный статический Метод

Enumerates windows with the class name 'Button' and a blank window name.
public static EnumButtonWindow ( IntPtr handle, IntPtr pointer ) : bool
handle System.IntPtr A handle to a top-level window.
pointer System.IntPtr The application-defined value given in EnumWindows or EnumDesktopWindows.
Результат bool

EnumToolbarWindow() публичный статический Метод

Enumerates windows with the class name 'ToolbarWindow32'.
public static EnumToolbarWindow ( IntPtr handle, IntPtr pointer ) : bool
handle System.IntPtr A handle to a top-level window.
pointer System.IntPtr The application-defined value given in EnumWindows or EnumDesktopWindows.
Результат bool

GetChildButtonWindows() публичный статический Метод

Returns a list of handles for windows of the class 'ToolbarWindow32'.
public static GetChildButtonWindows ( IntPtr parent ) : List
parent System.IntPtr The handle of the parent window whose children should be searched.
Результат List

GetChildToolbarWindows() публичный статический Метод

Returns a list of handles for windows of the class 'ToolbarWindow32'.
public static GetChildToolbarWindows ( IntPtr parent ) : List
parent System.IntPtr The parent window whose children should be searched.
Результат List

IsOverClientArea() публичный статический Метод

Checks whether the cursor is over the current window's client area.
public static IsOverClientArea ( IntPtr hWnd, IntPtr wParam, IntPtr lParam ) : bool
hWnd System.IntPtr Handle of the window to check.
wParam System.IntPtr Additional message information. The content of this parameter depends on the value of the Msg parameter (wParam).
lParam System.IntPtr Additional message information. The content of this parameter depends on the value of the Msg parameter (lParam).
Результат bool