DirectX SDK

DirectDrawEnum.GetMonitorHandle

The DirectDrawEnum.GetMonitorHandle returns the monitor handle of the specified DirectDraw device.

object.GetName(index As Long) As Long

Parameters

object
Object expression that resolves to a DirectDrawEnum object.
index
Particular DirectDraw device in the DirectDrawEnum object.

Return Values

If the method succeeds, it returns the monitor handle of the device.

Error Codes

If the method fails, it raises an error, and Err.Number is set.