다음을 통해 공유


GetPhysicalMonitorsFromIDirect3DDevice9 함수(physicalmonitorenumerationapi.h)

Direct3D 디바이스와 연결된 물리적 모니터를 검색합니다.

구문

HRESULT GetPhysicalMonitorsFromIDirect3DDevice9(
  [in]  IDirect3DDevice9   *pDirect3DDevice9,
  [in]  DWORD              dwPhysicalMonitorArraySize,
  [out] LPPHYSICAL_MONITOR pPhysicalMonitorArray
);

매개 변수

[in] pDirect3DDevice9

Direct3D 디바이스의 IDirect3DDevice9 인터페이스에 대한 포인터입니다.

[in] dwPhysicalMonitorArraySize

pPhysicalMonitorArray의 요소 수입니다. 배열의 필요한 크기를 얻으려면 GetNumberOfPhysicalMonitorsFromIDirect3DDevice9를 호출합니다.

[out] pPhysicalMonitorArray

PHYSICAL_MONITOR 구조체의 배열에 대한 포인터입니다. 호출자는 배열을 할당해야 합니다.

반환 값

이 함수가 성공하면 S_OK 반환합니다. 그러지 않으면 HRESULT 오류 코드를 반환합니다.

설명

단일 Direct3D 디바이스를 둘 이상의 물리적 모니터와 연결할 수 있습니다. 이 함수는 각 물리적 모니터에 대한 핸들과 텍스트 설명을 반환합니다.

모니터 핸들 사용을 완료하면 pPhysicalMonitorArray 배열을 DestroyPhysicalMonitors 함수에 전달하여 닫습니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows Vista [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 2008 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 physicalmonitorenumerationapi.h
라이브러리 Dxva2.lib
DLL Dxva2.dll

추가 정보

구성 함수 모니터링