diff options
author | midipix <writeonce@midipix.org> | 2019-05-28 02:46:06 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-05-28 03:05:42 +0000 |
commit | dce12f452b5d452f460427efd40f254a5c441eb3 (patch) | |
tree | b1a7388f897f8607abb7dd6b9c74eef2c17fca0f /src | |
parent | c155d909936810348fc0e237f1cdf316ff8ce04d (diff) | |
download | ntapi-dce12f452b5d452f460427efd40f254a5c441eb3.tar.bz2 ntapi-dce12f452b5d452f460427efd40f254a5c441eb3.tar.xz |
__ntapi_tt_debug_execution_flow(): impl. NT_DBG_FLOW_MASK_DETACH_AND_CLOSE.
Diffstat (limited to 'src')
-rw-r--r-- | src/debug/ntapi_tt_debug_execution_flow.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/debug/ntapi_tt_debug_execution_flow.c b/src/debug/ntapi_tt_debug_execution_flow.c index f4e9f1c..aee3b22 100644 --- a/src/debug/ntapi_tt_debug_execution_flow.c +++ b/src/debug/ntapi_tt_debug_execution_flow.c @@ -43,6 +43,7 @@ static int32_t __log_exception_to_server( int32_t __stdcall __ntapi_tt_debug_execution_flow( __in void * hdbgobj, + __in void * hprocess, __in void * hserver, __in void * hlogfile, __in uint32_t evtmask, @@ -91,5 +92,13 @@ int32_t __stdcall __ntapi_tt_debug_execution_flow( response); } + if (evtmask & NT_DBG_FLOW_MASK_DETACH_AND_CLOSE) { + __ntapi->zw_remove_process_debug( + hprocess,hdbgobj); + + __ntapi->zw_close( + hdbgobj); + } + return NT_STATUS_SUCCESS; } |