このリポジトリは Files v4.3 の非公式forkです。UAC(ユーザーアカウント制御)が 無効なWindowsで管理者として動く場合など、Filesが昇格しているときのファイル・ フォルダーのドラッグ&ドロップを修正しています。
昇格時のドロップ受信には、WinUIのドロップ処理に代わってWindows OLEの
IDropTarget を使います。受信した CF_HDROP データからファイルやフォルダーの
パスを取得し、ドロップ先を判定して、Filesの既存のコピー・移動処理に渡します。
Filesのウィンドウ外へドラッグしたときは、OLEのドラッグ処理に引き継ぎます。
- MainWindow.NativeDrop.cs — ドロップの受信を有効にし、ドロップ先を判定します。
- OleFileReceiver.cs —
IDropTargetを実装し、受信データからパスを取り出します。 - BaseLayoutPage.NativeDrop.cs — 取得したパスを既存のコピー・移動処理に渡します。
- MainWindow.LocalDrag.cs と OleFileSender.cs — ウィンドウ内のドラッグと、外へ出たときのOLEへの引き継ぎを扱います。
This unofficial fork of Files v4.3 fixes file drag-and-drop for elevated Files sessions, including administrator sessions on Windows with User Account Control (UAC) disabled.
For elevated sessions, Files registers a native Windows OLE IDropTarget
in place of its WinUI drop handlers. The target reads file and folder paths
from the incoming OLE CF_HDROP data. Files resolves the drop destination
and hands the paths to its existing copy or move operations. When a drag
leaves the Files window, Files starts an outbound OLE drag.
- MainWindow.NativeDrop.cs — enables native drop handling and resolves the destination.
- OleFileReceiver.cs — implements
IDropTargetand extracts file paths. - BaseLayoutPage.NativeDrop.cs — connects the drop to Files' existing copy and move operations.
- MainWindow.LocalDrag.cs and OleFileSender.cs — handle drags within the window and the handoff to outbound OLE.
Compare upstream v4.3 with the tagged drag-and-drop fix
The following content is retained from the upstream Files repository. Download links and contribution instructions below refer to the official Files project, not this modified fork.
Files is a modern file manager that helps users organize their files and folders. Our mission with Files is to build the best file manager for Windows, and we’re proud to be building it out in the open so everyone can participate. User feedback helps shape the features we work on, & the bug reports on GitHub help to make Files more reliable. Built and maintained by the open-source community, Files features robust multitasking experiences, file tags, deep integrations, and an intuitive design.
Files is a community-driven project that depends on your support to grow and improve. Please consider purchasing Files through the Microsoft Store or supporting us on GitHub if you use the classic installer.
You can also use the preview version alongside the stable release to get early access to new features and improvements.
Instructions for building the source code can be found on our documentation site.
Want to contribute to this project? Let us know with an issue that communicates your intent to create a pull request. Also, view our contributing guidelines to make sure you're up to date on the coding conventions.
Looking for a place to start? Check out the task board, where you can sort tasks by size and priority.



