Skip to content

Commit 8988bcd

Browse files
branchseerclaude
andcommitted
refactor: remove redundant FindFirstFile interception
NtQueryDirectoryFile is already being intercepted at NT level, which correctly captures READ_DIR accesses when programs enumerate directories. The FindFirstFile Win32 API interception was unnecessary as it's just a wrapper around the NT API. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 07d4ddb commit 8988bcd

3 files changed

Lines changed: 1 addition & 152 deletions

File tree

crates/fspy_preload_windows/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fspy_shared = { workspace = true }
1414
ntapi = { workspace = true }
1515
smallvec = { workspace = true }
1616
widestring = { workspace = true }
17-
winapi = { workspace = true, features = ["winerror", "winbase", "namedpipeapi", "memoryapi", "std", "processenv"] }
17+
winapi = { workspace = true, features = ["winerror", "winbase", "namedpipeapi", "memoryapi", "std"] }
1818
winsafe = { workspace = true }
1919

2020
[target.'cfg(target_os = "windows")'.dev-dependencies]

crates/fspy_preload_windows/src/windows/detours/find_file.rs

Lines changed: 0 additions & 149 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mod create_process;
2-
mod find_file;
32
mod nt;
43

54
use constcat::concat_slices;
@@ -8,6 +7,5 @@ use super::detour::DetourAny;
87

98
pub const DETOURS: &[DetourAny] = concat_slices!([DetourAny]:
109
create_process::DETOURS,
11-
find_file::DETOURS,
1210
nt::DETOURS,
1311
);

0 commit comments

Comments
 (0)