Ejemplo n.º 1
0
        public static CoreDragDropManager GetForWindow(IntPtr hWnd)
        {
            IDragDropManagerInterop dragDropManagerInterop = InteropHelper.GetActivationFactory <IDragDropManagerInterop>(typeof(CoreDragDropManager));
            Guid guid = typeof(CoreDragDropManager).GUID;

            return(dragDropManagerInterop.GetForWindow(hWnd, ref guid));
        }
        public static CoreDragDropManager GetForWindow(IntPtr hWnd)
        {
            IDragDropManagerInterop dragDropManagerInterop = (IDragDropManagerInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(CoreDragDropManager));
            Guid guid = typeof(CoreDragDropManager).GUID;

            return(dragDropManagerInterop.GetForWindow(hWnd, ref guid));
        }