MSDN 文档中的 OpenInputDesktop 究竟代表什么?
What does OpenInputDesktop in MSDN documentation stand for exactly?
我正在经历 DesktopDuplication API Sample Code and there were quite a lot of function which were unclear to me as to what their exact devices and parameters are. One of them is OpenInputDesktop。
这是 DesktopDuplication API 示例代码中如何使用此函数的代码片段。
// Get desktop
DUPL_RETURN Ret;
HDESK CurrentDesktop = nullptr;
CurrentDesktop = OpenInputDesktop(0, FALSE, GENERIC_ALL);
所以我的问题是这里的 Desktop 到底是什么意思?
如果我有一个多显示器系统,主桌面:1366X768 和副桌面 1920X1080 那么桌面是仅表示主桌面的桌面区域:1366X768 还是桌面表示 (1920+1366) 的整个屏幕区域3286X1080?
或者我们是否可以在函数调用中选择上述两个桌面定义之一。但是我找不到任何可以更改的参数。
更新
我提到 Window Station and Desktop Creation and also Desktop and Window Stations however I did not find a concrete answer to my question yet. Here in Desktops 提到:
This active desktop, also known as the input desktop, is the one that is currently visible to the user and that receives user input.
这是指主监视器吗?我对桌面和显示器的概念仍然感到困惑
By default, there are three desktops in the interactive window station: Default, ScreenSaver, and Winlogon.
这就解决了桌面和显示器之间没有关系的疑问。但是,当连接多个显示器时,桌面区域意味着什么? default/screensaver 在主显示器或组合屏幕上的位置 space?
我在这个 link 上找到了问题的答案:Virtual Screen。
提到的地方:
The bounding rectangle of all the monitors is the virtual screen. The desktop covers the virtual screen instead of a single monitor.
这基本上让我对桌面的确切含义感到困惑。感谢您的帮助@Ben Voigt
在此 link:HMonitor and the Device Context 已提及:
Each physical display is represented by a monitor handle of type HMONITOR. A physical display has the same HMONITOR as long as it is part of the desktop.
所以这清除了我关于物理设备、虚拟屏幕以及它们与 MSDN 中的监视器和桌面的关系的概念。
希望这有助于搜索与我类似的答案的人。
我正在经历 DesktopDuplication API Sample Code and there were quite a lot of function which were unclear to me as to what their exact devices and parameters are. One of them is OpenInputDesktop。
这是 DesktopDuplication API 示例代码中如何使用此函数的代码片段。
// Get desktop
DUPL_RETURN Ret;
HDESK CurrentDesktop = nullptr;
CurrentDesktop = OpenInputDesktop(0, FALSE, GENERIC_ALL);
所以我的问题是这里的 Desktop 到底是什么意思?
如果我有一个多显示器系统,主桌面:1366X768 和副桌面 1920X1080 那么桌面是仅表示主桌面的桌面区域:1366X768 还是桌面表示 (1920+1366) 的整个屏幕区域3286X1080?
或者我们是否可以在函数调用中选择上述两个桌面定义之一。但是我找不到任何可以更改的参数。
更新 我提到 Window Station and Desktop Creation and also Desktop and Window Stations however I did not find a concrete answer to my question yet. Here in Desktops 提到:
This active desktop, also known as the input desktop, is the one that is currently visible to the user and that receives user input.
这是指主监视器吗?我对桌面和显示器的概念仍然感到困惑
By default, there are three desktops in the interactive window station: Default, ScreenSaver, and Winlogon.
这就解决了桌面和显示器之间没有关系的疑问。但是,当连接多个显示器时,桌面区域意味着什么? default/screensaver 在主显示器或组合屏幕上的位置 space?
我在这个 link 上找到了问题的答案:Virtual Screen。
提到的地方:
The bounding rectangle of all the monitors is the virtual screen. The desktop covers the virtual screen instead of a single monitor.
这基本上让我对桌面的确切含义感到困惑。感谢您的帮助@Ben Voigt
在此 link:HMonitor and the Device Context 已提及:
Each physical display is represented by a monitor handle of type HMONITOR. A physical display has the same HMONITOR as long as it is part of the desktop.
所以这清除了我关于物理设备、虚拟屏幕以及它们与 MSDN 中的监视器和桌面的关系的概念。
希望这有助于搜索与我类似的答案的人。