DestroyPhysicalMonitors 函数 (physicalmonitorenumerationapi.h)

关闭物理监视器句柄数组。 调用此函数以关闭从 GetPhysicalMonitorsFromHMONITORGetPhysicalMonitorsFromIDirect3DDevice9 函数获取的监视器句柄数组。

语法

_BOOL DestroyPhysicalMonitors(
  [in] DWORD              dwPhysicalMonitorArraySize,
  [in] LPPHYSICAL_MONITOR pPhysicalMonitorArray
);

参数

[in] dwPhysicalMonitorArraySize

pPhysicalMonitorArray 数组中的元素数。

[in] pPhysicalMonitorArray

指向PHYSICAL_MONITOR结构的数组 指针。

返回值

如果函数成功,则返回值为 TRUE。 如果函数失败,则返回值为 FALSE。 要获得更多的错误信息,请调用 GetLastError。

要求

要求
最低受支持的客户端 Windows Vista [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 [仅限桌面应用]
目标平台 Windows
标头 physicalmonitorenumerationapi.h
Library Dxva2.lib
DLL Dxva2.dll

另请参阅

DestroyPhysicalMonitor 函数

监视配置函数