Microsoft DirectX 9.0 SDK Update (October 2004)

Device.GetRasterStatus Method

Language:

Note: This documentation is preliminary and is subject to change.

Returns information that describes the raster of the monitor on which the swap chain is presented.

Definition

Visual Basic .NET Public Function GetRasterStatus( _
    ByVal swapChain As Integer _
) As RasterStatus
C# public RasterStatus GetRasterStatus(
    int swapChain
);
Managed C++ public: RasterStatus GetRasterStatus(
    int swapChain
);
JScript .NET public function GetRasterStatus(
    swapChain : int
) : RasterStatus;

Parameters

swapChain System.Int32. Unsigned integer that specifies the swap chain.

Return Value

Microsoft.DirectX.Direct3D.RasterStatus . A RasterStatus structure that contains information about the position or other status of the raster on the monitor driven by this adapter.

Remarks

This method does not return device state for a device created using PureDevice. To use this method, create a device with any of the other values in CreateFlags.

Exceptions
InvalidCallException The device does not support reading the current scan line. To determine whether a device supports reading the scan line, check for the DriverCaps.ReadScanLine property in Caps.DriverCaps.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center