Skip to content

Commit 3a7d37d

Browse files
Merge pull request #5 from zippy1981/UnmanagedTidying
We only need write only access to the Procmon trace file handle.
2 parents 5d66186 + 2671898 commit 3a7d37d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/ProcMonDebugOutput/ProcMonDebugOutput.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ HANDLE OpenProcessMonitorLogger(void)
1818
// I'm attempting the open every time because the user could start
1919
// Process Monitor after their process.
2020
g_hDevice = ::CreateFile(L"\\\\.\\Global\\ProcmonDebugLogger",
21-
GENERIC_READ | GENERIC_WRITE,
22-
FILE_SHARE_READ |
23-
FILE_SHARE_WRITE |
24-
FILE_SHARE_DELETE,
21+
GENERIC_WRITE,
22+
FILE_SHARE_WRITE,
2523
NULL,
2624
OPEN_EXISTING,
2725
FILE_ATTRIBUTE_NORMAL,

0 commit comments

Comments
 (0)