Microsoft DirectX 9.0 SDK Update (October 2004)

Manager.GetAdapterMonitor Method

Language:

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

Returns the handle of the monitor associated with the Microsoft® Direct3D® object.

Definition

Visual Basic .NET Public Shared Function GetAdapterMonitor( _
    ByVal adapter As Integer _
) As IntPtr
C# public static IntPtr GetAdapterMonitor(
    int adapter
);
Managed C++ public: static IntPtr GetAdapterMonitor(
    int adapter
);
JScript .NET public static function GetAdapterMonitor(
    adapter : int
) : IntPtr;

Parameters

adapter System.Int32. Ordinal number that denotes the display adapter. AdapterListCollection.Default is always the primary display adapter.

Return Value

System.IntPtr . Handle of the monitor associated with the Microsoft® Direct3D® object.

Remarks

The following C# code fragment illustrates how to obtain a handle to the monitor associated with a given device.

              [C#]
              
IntPtr hMonitor; AdapterInformation ai = Manager.Adapters.Default; hMonitor = Manager.GetAdapterMonitor(ai.Adapter);


© 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