summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-05-28 17:52:25 +0000
committermidipix <writeonce@midipix.org>2019-05-28 20:59:10 +0000
commitd4344e39eef3f7dfe84de7201ccf94204b018b60 (patch)
tree7572e86f1757d7ff61d5012d2aa7231bb09e1587 /src
parent2a7f67d71f9d34c49de6a81e7deab10882bf930f (diff)
downloadntapi-d4344e39eef3f7dfe84de7201ccf94204b018b60.tar.bz2
ntapi-d4344e39eef3f7dfe84de7201ccf94204b018b60.tar.xz
debug interfaces: normalize extension functions (set prefix to tt_debug_).
Diffstat (limited to 'src')
-rw-r--r--src/debug/ntapi_tt_debug_create_object.c (renamed from src/debug/ntapi_tt_create_debug_object.c)6
-rw-r--r--src/internal/ntapi.c4
-rw-r--r--src/internal/ntapi_fnapi.h4
-rw-r--r--src/process/ntapi_tt_spawn_foreign_process.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/debug/ntapi_tt_create_debug_object.c b/src/debug/ntapi_tt_debug_create_object.c
index b091d37..836943e 100644
--- a/src/debug/ntapi_tt_create_debug_object.c
+++ b/src/debug/ntapi_tt_debug_create_object.c
@@ -71,7 +71,7 @@ static void __dbg_sd_init(nt_sd_common_buffer * sd)
}
-int32_t __stdcall __ntapi_tt_create_debug_object(
+int32_t __stdcall __ntapi_tt_debug_create_object(
__out void ** hdbgobj,
__in uint32_t flags)
{
@@ -98,7 +98,7 @@ int32_t __stdcall __ntapi_tt_create_debug_object(
&oa,flags);
}
-int32_t __stdcall __ntapi_tt_create_attach_debug_object(
+int32_t __stdcall __ntapi_tt_debug_create_attach_object(
__out void ** hdbgobj,
__in void * hprocess,
__in uint32_t flags)
@@ -106,7 +106,7 @@ int32_t __stdcall __ntapi_tt_create_attach_debug_object(
int32_t status;
void * hdebug;
- if ((status = __ntapi_tt_create_debug_object(&hdebug,flags)))
+ if ((status = __ntapi_tt_debug_create_object(&hdebug,flags)))
return status;
if ((status = __ntapi->zw_debug_active_process(hprocess,hdebug))) {
diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c
index eff7eb1..94b6604 100644
--- a/src/internal/ntapi.c
+++ b/src/internal/ntapi.c
@@ -444,8 +444,8 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl)
__ntapi->log_msg = __ntapi_log_msg;
/* nt_debug.h */
- __ntapi->tt_create_debug_object = __ntapi_tt_create_debug_object;
- __ntapi->tt_create_attach_debug_object = __ntapi_tt_create_attach_debug_object;
+ __ntapi->tt_debug_create_object = __ntapi_tt_debug_create_object;
+ __ntapi->tt_debug_create_attach_object = __ntapi_tt_debug_create_attach_object;
__ntapi->tt_debug_execution_flow = __ntapi_tt_debug_execution_flow;
__ntapi->tt_debug_break_process = __ntapi_tt_debug_break_process;
diff --git a/src/internal/ntapi_fnapi.h b/src/internal/ntapi_fnapi.h
index 2f79a57..5d5f0f6 100644
--- a/src/internal/ntapi_fnapi.h
+++ b/src/internal/ntapi_fnapi.h
@@ -335,8 +335,8 @@ NTAPI_UFN(log_fn_call);
NTAPI_UFN(log_msg);
/* debug */
-NTAPI_UFN(tt_create_debug_object);
-NTAPI_UFN(tt_create_attach_debug_object);
+NTAPI_UFN(tt_debug_create_object);
+NTAPI_UFN(tt_debug_create_attach_object);
NTAPI_UFN(tt_debug_execution_flow);
NTAPI_UFN(tt_debug_break_process);
diff --git a/src/process/ntapi_tt_spawn_foreign_process.c b/src/process/ntapi_tt_spawn_foreign_process.c
index 6f12f6a..1b63c23 100644
--- a/src/process/ntapi_tt_spawn_foreign_process.c
+++ b/src/process/ntapi_tt_spawn_foreign_process.c
@@ -384,7 +384,7 @@ int32_t __stdcall __ntapi_tt_spawn_foreign_process(nt_spawn_process_params * spa
/* debug */
if (sparams->spawnflags & NT_PROCESS_SPAWN_FLAG_DEBUG_MASK)
- if ((status = __ntapi->tt_create_attach_debug_object(
+ if ((status = __ntapi->tt_debug_create_attach_object(
&sparams->hdbgobj,
cparams.hprocess,
NT_DEBUG_KILL_ON_EXIT)))