C# Class Fluent.NativeMethods

Native methods
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Méthode Description
DwmGetCompositionTimingInfo ( IntPtr hwnd ) : DWM_TIMING_INFO?

Retrieves the current composition timing information.

GetClassLongPtr ( IntPtr hWnd, int nIndex ) : IntPtr

The GetClassLongPtr function retrieves the specified value from the WNDCLASSEX structure associated with the specified window. If you are retrieving a pointer or a handle, this function supersedes the GetClassLong function. (Pointers and handles are 32 bits on 32-bit Microsoft Windows and 64 bits on 64-bit Windows.) To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetClassLongPtr.

GetWindowLongPtr ( IntPtr hWnd, int nIndex ) : IntPtr

The GetWindowLong function retrieves information about the specified window. The function also retrieves the 32-bit (long) value at the specified offset into the extra window memory.If you are retrieving a pointer or a handle, this function has been superseded by the GetWindowLongPtr function. (Pointers and handles are 32 bits on 32-bit Microsoft Windows and 64 bits on 64-bit Windows.) To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetWindowLongPtr.

HiWord ( IntPtr value ) : int

Gets hi word of dword

IsDwmEnabled ( ) : bool

Is DWM enabled

LowWord ( IntPtr value ) : int

Gets low word of dword

SetWindowLongPtr ( IntPtr hWnd, int nIndex, IntPtr dwNewLong ) : IntPtr

The SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.

Private Methods

Méthode Description
AdjustWindowRectEx ( Rect &lpRect, int dwStyle, [ bMenu, int dwExStyle ) : bool
CallNextHookEx ( IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr
ChooseColor ( CHOOSECOLOR lpcc ) : bool
CombineRgn ( IntPtr hrgnDest, IntPtr hrgnSrc1, IntPtr hrgnSrc2, int fnCombineMode ) : int
CreateRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : IntPtr
CreateRectRgnIndirect ( [ lprc ) : IntPtr
CreateRoundRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse ) : IntPtr
DefWindowProc ( IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
DeleteObject ( IntPtr hObject ) : bool
DwmDefWindowProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, IntPtr &plResult ) : bool
DwmExtendFrameIntoClientArea ( IntPtr hWnd, MARGINS pMargins ) : void
DwmGetCompositionTimingInfo ( IntPtr hwnd, DWM_TIMING_INFO &pTimingInfo ) : IntPtr
DwmGetWindowAttribute ( IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, IntPtr pvAttribute, int cbAttribute ) : int
DwmGetWindowAttribute ( IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, Rect &pvAttribute, int cbAttribute ) : int
DwmIsCompositionEnabled ( ) : bool
EnableMenuItem ( IntPtr hMenu, int uIDEnableItem, uint uEnable ) : int
EnumChildWindows ( IntPtr hWndParent, EnumChildProc lpEnumFunc, IntPtr lParam ) : bool
GetActiveWindow ( ) : IntPtr
GetClassLongPtr32 ( IntPtr hWnd, int nIndex ) : uint
GetClassLongPtr64 ( IntPtr hWnd, int nIndex ) : IntPtr
GetClientRect ( IntPtr hWnd, Rect &lpRect ) : bool
GetDC ( IntPtr hwnd ) : IntPtr
GetDeviceCaps ( IntPtr hdc, int nIndex ) : int
GetKeyboardLayoutList ( int nBuff, [ lpList ) : int
GetKeyboardState ( byte lpKeyState ) : bool
GetMonitorInfo ( IntPtr hMonitor, [ lpmi ) : bool
GetSystemMenu ( IntPtr hWnd, [ bRevert ) : IntPtr
GetWindowInfo ( IntPtr hwnd, WINDOWINFO &pwi ) : bool
GetWindowLongPtr32 ( IntPtr hWnd, int nIndex ) : Int32
GetWindowLongPtr64 ( IntPtr hWnd, int nIndex ) : System.Int64
GetWindowPlacement ( IntPtr hwnd, WINDOWPLACEMENT lpwndpl ) : bool
GetWindowRect ( IntPtr hWnd, Rect &lpRect ) : bool
IsWindowVisible ( IntPtr hwnd ) : bool
LoadImage ( IntPtr hinst, IntPtr lpszName, uint uType, int cxDesired, int cyDesired, uint fuLoad ) : IntPtr
LoadKeyboardLayout ( string cultureId, uint flags ) : IntPtr
MakeDWord ( int lo, int hi ) : IntPtr
MapVirtualKeyEx ( uint uCode, uint uMapType, IntPtr dwhkl ) : uint
MonitorFromRect ( [ lprc, uint dwFlags ) : IntPtr
MonitorFromWindow ( IntPtr hwnd, uint dwFlags ) : IntPtr
PostMessage ( IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam ) : bool
ReleaseCapture ( ) : bool
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
SHAppBarMessage ( int dwMessage, APPBARDATA &pData ) : int
SendMessage ( IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SetActiveWindow ( IntPtr hWnd ) : IntPtr
SetForegroundWindow ( IntPtr hWnd ) : IntPtr
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
SetWindowLong32 ( IntPtr hWnd, int nIndex, int dwNewLong ) : int
SetWindowLongPtr64 ( IntPtr hWnd, int nIndex, IntPtr dwNewLong ) : IntPtr
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags ) : bool
SetWindowRgn ( IntPtr hWnd, IntPtr hRgn, [ bRedraw ) : int
SetWindowsHookEx ( HookType hookType, HookProc lpfn, IntPtr hMod, int dwThreadId ) : IntPtr
ToUnicodeEx ( uint wVirtKey, uint wScanCode, byte lpKeyState, [ pwszBuff, int cchBuff, uint wFlags, IntPtr dwhkl ) : int
TrackPopupMenuEx ( IntPtr hmenu, uint fuFlags, int x, int y, IntPtr hwnd, IntPtr lptpm ) : uint
UnhookWindowsHookEx ( IntPtr hhk ) : bool
UnloadKeyboardLayout ( IntPtr hkl ) : bool

Method Details

DwmGetCompositionTimingInfo() public static méthode

Retrieves the current composition timing information.
public static DwmGetCompositionTimingInfo ( IntPtr hwnd ) : DWM_TIMING_INFO?
hwnd System.IntPtr The handle to the window for which the composition timing information should be retrieved.
Résultat DWM_TIMING_INFO?

GetClassLongPtr() public static méthode

The GetClassLongPtr function retrieves the specified value from the WNDCLASSEX structure associated with the specified window. If you are retrieving a pointer or a handle, this function supersedes the GetClassLong function. (Pointers and handles are 32 bits on 32-bit Microsoft Windows and 64 bits on 64-bit Windows.) To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetClassLongPtr.
public static GetClassLongPtr ( IntPtr hWnd, int nIndex ) : IntPtr
hWnd System.IntPtr Handle to the window and, indirectly, the class to which the window belongs.
nIndex int Specifies the value to retrieve. To retrieve a value from the extra class memory, specify the positive, zero-based byte offset of the value to be retrieved. Valid values are in the range zero through the number of bytes of extra class memory, minus eight; for example, if you specified 24 or more bytes of extra class memory, a value of 16 would be an index to the third integer. To retrieve any other value from the WNDCLASSEX structure, specify one of the following values.
Résultat System.IntPtr

GetWindowLongPtr() public static méthode

The GetWindowLong function retrieves information about the specified window. The function also retrieves the 32-bit (long) value at the specified offset into the extra window memory.If you are retrieving a pointer or a handle, this function has been superseded by the GetWindowLongPtr function. (Pointers and handles are 32 bits on 32-bit Microsoft Windows and 64 bits on 64-bit Windows.) To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetWindowLongPtr.
public static GetWindowLongPtr ( IntPtr hWnd, int nIndex ) : IntPtr
hWnd System.IntPtr Handle to the window and, indirectly, the class to which the window belongs
nIndex int Specifies the zero-based offset to the value to be set. Valid values are in the range zero through the number of bytes of extra window memory, minus the size of an integer
Résultat System.IntPtr

HiWord() public static méthode

Gets hi word of dword
public static HiWord ( IntPtr value ) : int
value System.IntPtr Dword
Résultat int

IsDwmEnabled() public static méthode

Is DWM enabled
public static IsDwmEnabled ( ) : bool
Résultat bool

LowWord() public static méthode

Gets low word of dword
public static LowWord ( IntPtr value ) : int
value System.IntPtr Dword
Résultat int

SetWindowLongPtr() public static méthode

The SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.
public static SetWindowLongPtr ( IntPtr hWnd, int nIndex, IntPtr dwNewLong ) : IntPtr
hWnd System.IntPtr Handle to the window and, indirectly, the class to which the window belongs.
nIndex int Specifies the zero-based offset to the value to be set. Valid values are in the range zero through the number of bytes of extra window memory, minus the size of an integer.
dwNewLong System.IntPtr Specifies the replacement value.
Résultat System.IntPtr