C# Class Horde3DNET.PlatformInvoke.PInvoke

The PInvoke class provides access to important Win32 API functions.
Afficher le fichier Open project: mgottschlag/horde3d

Méthodes publiques

Méthode 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 méthode

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
Résultat short

GetDC() public static méthode

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
Résultat System.IntPtr

GetSystemMetrics() public static méthode

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
Résultat int

GetWindowDC() public static méthode

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
Résultat System.IntPtr

ReleaseDC() public static méthode

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
Résultat int