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
程式庫 Dxva2.lib
Dll Dxva2.dll

另請參閱

DestroyPhysicalMonitor 函式

監視組態函式