Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something like the Linux ptrace syscall in Windows?

Tags:

windows

ptrace

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.

like image 337
ivmos Avatar asked May 14 '09 19:05

ivmos


1 Answers

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.

like image 54
Michael Avatar answered Sep 23 '22 19:09

Michael