Class User32
- Namespace
- TaleWorlds.TwoDimension.Standalone.Native.Windows
- Assembly
- TaleWorlds.TwoDimension.Standalone.dll
public static class User32
- Inheritance
-
User32
- Inherited Members
Methods
CloseWindow(IntPtr)
public static extern bool CloseWindow(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
CreateWindowEx(int, string, string, WindowStyle, int, int, int, int, IntPtr, IntPtr, IntPtr, IntPtr)
public static extern IntPtr CreateWindowEx(int dwExStyle, string lpClassName, string lpWindowName, WindowStyle dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lpParam)
Parameters
dwExStyle
intlpClassName
stringlpWindowName
stringdwStyle
WindowStylex
inty
intnWidth
intnHeight
inthWndParent
IntPtrhMenu
IntPtrhInstance
IntPtrlpParam
IntPtr
Returns
DefWindowProc(IntPtr, uint, IntPtr, IntPtr)
public static extern IntPtr DefWindowProc(IntPtr hWnd, uint uMsg, IntPtr wParam, IntPtr lParam)
Parameters
Returns
DestroyWindow(IntPtr)
public static extern bool DestroyWindow(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
DispatchMessage(ref NativeMessage)
public static extern IntPtr DispatchMessage(ref NativeMessage lpMsg)
Parameters
lpMsg
NativeMessage
Returns
GetAsyncKeyState(int)
public static extern short GetAsyncKeyState(int vkey)
Parameters
vkey
int
Returns
GetClientRect(IntPtr, out Rectangle)
public static extern bool GetClientRect(IntPtr hWnd, out Rectangle lpRect)
Parameters
Returns
GetCursorPos(out Point)
public static extern bool GetCursorPos(out Point lpPoint)
Parameters
lpPoint
Point
Returns
GetDC(IntPtr)
public static extern IntPtr GetDC(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
GetDesktopWindow()
public static extern IntPtr GetDesktopWindow()
Returns
GetMessage(out NativeMessage, IntPtr, uint, uint)
public static extern bool GetMessage(out NativeMessage lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax)
Parameters
lpMsg
NativeMessagehWnd
IntPtrwMsgFilterMin
uintwMsgFilterMax
uint
Returns
GetWindowRect(IntPtr, out Rectangle)
public static extern bool GetWindowRect(IntPtr hWnd, out Rectangle lpRect)
Parameters
Returns
LoadCursorFromFile(string)
public static extern IntPtr LoadCursorFromFile(string lpFileName)
Parameters
lpFileName
string
Returns
MessageBox(IntPtr, string, string, uint)
public static extern int MessageBox(IntPtr hWnd, string text, string caption, uint type)
Parameters
Returns
MoveWindow(IntPtr, int, int, int, int, bool)
public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint)
Parameters
Returns
PeekMessage(out NativeMessage, IntPtr, uint, uint, uint)
public static extern bool PeekMessage(out NativeMessage lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg)
Parameters
lpMsg
NativeMessagehWnd
IntPtrwMsgFilterMin
uintwMsgFilterMax
uintwRemoveMsg
uint
Returns
RegisterClass(ref WindowClass)
public static extern ushort RegisterClass(ref WindowClass lpWndClass)
Parameters
lpWndClass
WindowClass
Returns
ReleaseCapture()
public static extern bool ReleaseCapture()
Returns
ReleaseDC(IntPtr, IntPtr)
public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC)
Parameters
Returns
ScreenToClient(IntPtr, ref Point)
public static extern bool ScreenToClient(IntPtr hWnd, ref Point lpPoint)
Parameters
Returns
SendMessage(IntPtr, uint, IntPtr, IntPtr)
public static extern int SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam)
Parameters
Returns
SetActiveWindow(IntPtr)
public static extern IntPtr SetActiveWindow(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
SetCapture(IntPtr)
public static extern IntPtr SetCapture(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
SetForegroundWindow(IntPtr)
public static extern bool SetForegroundWindow(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
SetParent(IntPtr, IntPtr)
public static extern IntPtr SetParent(IntPtr child, IntPtr newParent)
Parameters
Returns
SetWindowLong(IntPtr, int, uint)
public static extern int SetWindowLong(IntPtr hWnd, int nIndex, uint dwNewLong)
Parameters
Returns
SetWindowPos(IntPtr, IntPtr, int, int, int, int, uint)
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags)
Parameters
Returns
ShowWindow(IntPtr, WindowShowStyle)
public static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow)
Parameters
hWnd
IntPtrnCmdShow
WindowShowStyle
Returns
TranslateMessage(ref NativeMessage)
public static extern bool TranslateMessage(ref NativeMessage lpMsg)
Parameters
lpMsg
NativeMessage
Returns
UnregisterClass(string, IntPtr)
public static extern bool UnregisterClass(string lpClassName, IntPtr hInstance)
Parameters
Returns
UpdateLayeredWindow(IntPtr, IntPtr, ref Point, ref Size, IntPtr, ref Point, int, ref BlendFunction, int)
public static extern bool UpdateLayeredWindow(IntPtr hWnd, IntPtr hdcDst, ref Point pptDst, ref Size psize, IntPtr hdcSrc, ref Point pprSrc, int crKey, ref BlendFunction pblend, int dwFlags)
Parameters
hWnd
IntPtrhdcDst
IntPtrpptDst
Pointpsize
SizehdcSrc
IntPtrpprSrc
PointcrKey
intpblend
BlendFunctiondwFlags
int
Returns
UpdateWindow(IntPtr)
public static extern bool UpdateWindow(IntPtr hWnd)
Parameters
hWnd
IntPtr
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).