C# Класс Horde3DNET.PlatformInvoke.PInvoke

The PInvoke class provides access to important Win32 API functions.
Показать файл Открыть проект

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

Метод Описание
GetAsyncKeyState ( int vKey ) : short

The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState. For more information visit: http://msdn2.microsoft.com/en-us/library/ms646293.aspx

GetDC ( IntPtr hWnd ) : IntPtr

The GetDC function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen. For more information visit: http://msdn2.microsoft.com/en-us/library/ms533241.aspx

GetSystemMetrics ( int nIndex ) : int

Retrieves the specified system metric or system configuration setting. For more information visit: http://msdn2.microsoft.com/en-us/library/ms724385.aspx

GetWindowDC ( int hWnd ) : IntPtr

The GetWindowDC function retrieves the device context (DC) for the entire window. For more information visit: http://msdn2.microsoft.com/en-us/library/ms534830.aspx

ReleaseDC ( IntPtr hWnd, IntPtr hDc ) : int

The ReleaseDC function releases a device context (DC). For more information visit: http://msdn2.microsoft.com/en-us/library/ms533251.aspx

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

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

The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState. For more information visit: http://msdn2.microsoft.com/en-us/library/ms646293.aspx
public static GetAsyncKeyState ( int vKey ) : short
vKey int Specifies one of 256 possible virtual-key codes
Результат short

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

The GetDC function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen. For more information visit: http://msdn2.microsoft.com/en-us/library/ms533241.aspx
public static GetDC ( IntPtr hWnd ) : IntPtr
hWnd System.IntPtr handle to window
Результат System.IntPtr

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

Retrieves the specified system metric or system configuration setting. For more information visit: http://msdn2.microsoft.com/en-us/library/ms724385.aspx
public static GetSystemMetrics ( int nIndex ) : int
nIndex int system metric or configuration setting to be retrieved
Результат int

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

The GetWindowDC function retrieves the device context (DC) for the entire window. For more information visit: http://msdn2.microsoft.com/en-us/library/ms534830.aspx
public static GetWindowDC ( int hWnd ) : IntPtr
hWnd int handle to window
Результат System.IntPtr

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

The ReleaseDC function releases a device context (DC). For more information visit: http://msdn2.microsoft.com/en-us/library/ms533251.aspx
public static ReleaseDC ( IntPtr hWnd, IntPtr hDc ) : int
hWnd System.IntPtr handle to window
hDc System.IntPtr handle to device context
Результат int