Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the handle of the monitor associated with the Microsoft Direct3D object.
Definition
Visual Basic Public Shared Function GetAdapterMonitor( _
ByVal adapter As Integer _
) As IntPtrC# public static IntPtr GetAdapterMonitor(
int adapter
);C++ public:
static IntPtrGetAdapterMonitor(
int adapter
);JScript 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 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);
.gif)