C# Class Horde3DNET.PlatformInvoke.PInvoke

The PInvoke class provides access to important Win32 API functions.
显示文件 Open project: mgottschlag/horde3d

Public Methods

Method Description
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

Method Details

GetAsyncKeyState() public static method

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
return short

GetDC() public static method

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
return System.IntPtr

GetSystemMetrics() public static method

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
return int

GetWindowDC() public static method

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
return System.IntPtr

ReleaseDC() public static method

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
return int