namespace Vanara.PInvoke;
public static partial class Shell32
{
/// Provides a method for retrieving the target monitor for the application being launched.
// https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-ilaunchtargetmonitor
[PInvokeData("shobjidl_core.h", MSDNShortId = "NN:shobjidl_core.ILaunchTargetMonitor")]
[ComImport, Guid("266FBC7E-490D-46ED-A96B-2274DB252003"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ILaunchTargetMonitor
{
/// Retrieves the target monitor for the application being launched.
///
/// Type: HMONITOR*
/// Contains the address of a pointer to the target monitor's handle.
///
///
/// Type: HRESULT
/// If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
///
// https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-ilaunchtargetmonitor-getmonitor HRESULT
// GetMonitor( HMONITOR *monitor );
[PreserveSig]
HRESULT GetMonitor(out HMONITOR monitor);
}
}