Desktop Functions: Smart Device Functions:
|
MonitorFromWindow (user32)
C# Constants
const int MONITOR_DEFAULTTONULL = 0; C# Signature:
[DllImport("user32.dll")] User-Defined Types:None. Notes:None. const int MONITOR_DEFAULTTONULL = 0; const int MONITOR_DEFAULTTOPRIMARY = 1; const int MONITOR_DEFAULTTONEAREST = 2; Tips & Tricks:Please add some! C# Signature:
[DllImport("user32.dll")] User-Defined Types:None. Sample Code:Notes:None.
[DllImport("user32.dll", SetLastError = false)] Tips & Tricks:Please add some!
IntPtr handle = MonitorFromWindow(GetDesktopWindow(), MONITOR_DEFAULTTONEAREST); Sample Code:Please add some! Alternative Managed API:The System.Windows.Forms.Screen class contains all you might need to know about multiple monitors. The SystemInformation class also gives some information about available monitors. Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|