9

Reading Monitoring certain system calls done by a process in Windows, I'm wondering about a Windows equivalent to the ptrace system call or a programmatical workaround.

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
cort
  • 1,048
  • 1
  • 11
  • 18

1 Answers1

3

You can use ETW to trace system calls. When starting the trace, in EVENT_TRACE_PROPERTIES, you can add EVENT_TRACE_FLAG_SYSTEMCALL flag to EnableFlags. This enables SysCallEnter and SysCallLeave events, as described here.

Michael
  • 52,910
  • 5
  • 118
  • 142