util/fdshark.c: Add IO tracing utility

This commit is contained in:
Tau
2019-05-09 16:49:18 -04:00
parent 649e7d2b4e
commit 03cace7785
3 changed files with 235 additions and 0 deletions

16
util/fdshark.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include <windows.h>
#include <stdbool.h>
#include <stddef.h>
enum {
FDSHARK_FORCE_SYNC = 0x1,
FDSHARK_TRACE_READ = 0x2,
FDSHARK_TRACE_WRITE = 0x4,
FDSHARK_TRACE_IOCTL = 0x8,
FDSHARK_ALL_FLAGS_ = 0xF,
};
HRESULT fdshark_hook_init(const wchar_t *filename, int flags);