Class Win32Native
Interoperation with Win32 Native.
Namespace: Evergine.Forms
Assembly: Evergine.Forms.dll
Syntax
public class Win32Native
Methods
CallWindowProc(nint, nint, int, nint, nint)
Calls the window proc.
Declaration
public static extern nint CallWindowProc(nint wndProc, nint hwnd, int msg, nint wParam, nint lParam)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | wndProc | The WND proc. |
| nint | hwnd | The HWND. |
| int | msg | The MSG. |
| nint | wParam | The w param. |
| nint | lParam | The l param. |
Returns
| Type | Description |
|---|---|
| nint | function pointer. |
GetConsoleWindow()
Retrieves the window handle used by the console associated with the calling process.
Declaration
public static extern nint GetConsoleWindow()
Returns
| Type | Description |
|---|---|
| nint | The return value is a handle to the window used by the console associated with the calling process or NULL if there is no such associated console. |
GetFocus()
Gets the focus.
Declaration
public static extern nint GetFocus()
Returns
| Type | Description |
|---|---|
| nint | function pointer. |
GetModuleHandle(string)
Gets the module handle.
Declaration
public static extern nint GetModuleHandle(string lpModuleName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | lpModuleName | Name of the lp module. |
Returns
| Type | Description |
|---|---|
| nint | function pointer. |
GetWindowLong(HandleRef, WindowLongType)
Gets the window long.
Declaration
public static nint GetWindowLong(HandleRef hWnd, Win32Native.WindowLongType index)
Parameters
| Type | Name | Description |
|---|---|---|
| HandleRef | hWnd | The h WND. |
| Win32Native.WindowLongType | index | The index. |
Returns
| Type | Description |
|---|---|
| nint | function pointer. |
SetCursorPos(int, int)
Moves the cursor to the specified screen coordinates.
Declaration
public static extern bool SetCursorPos(int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | The new x-coordinate of the cursor, in screen coordinates. |
| int | y | The new y-coordinate of the cursor, in screen coordinates. |
Returns
| Type | Description |
|---|---|
| bool | Returns |
SetParent(HandleRef, nint)
Sets the parent.
Declaration
public static extern nint SetParent(HandleRef hWnd, nint hWndParent)
Parameters
| Type | Name | Description |
|---|---|---|
| HandleRef | hWnd | The h WND. |
| nint | hWndParent | The h WND parent. |
Returns
| Type | Description |
|---|---|
| nint | function pointer. |
SetWindowLong(HandleRef, WindowLongType, nint)
Sets the window long.
Declaration
public static nint SetWindowLong(HandleRef hwnd, Win32Native.WindowLongType index, nint wndProcPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| HandleRef | hwnd | The HWND. |
| Win32Native.WindowLongType | index | The index. |
| nint | wndProcPtr | The WND proc PTR. |
Returns
| Type | Description |
|---|---|
| nint | function pointer. |
ShowWindow(nint, bool)
Shows the window.
Declaration
public static bool ShowWindow(nint hWnd, bool windowVisible)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | hWnd | The h WND. |
| bool | windowVisible | if set to |
Returns
| Type | Description |
|---|---|
| bool | function pointer. |