Partager via


IWmsPresentationDevice::GetDimensions method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Retrieves the dimensions of a monitor screen, in pixels.

Syntax

HRESULT GetDimensions(
  [out] UINT *pcx,
  [out] UINT *pcy
);

Parameters

pcx [out]

On successful return, receives the width of the screen, in pixels.

pcy [out]

On successful return, receives the height of the screen, in pixels.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
IDL
WmsStationPresenter.idl
IID
IID_IWmsPresentationDevice is defined as 3fa4b1eb-eb6c-455e-a7ae-0861a26c8fc4

See also

IWmsPresentationDevice