2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Kernel
4 * FILE: ntoskrnl/dbgk/dbgkutil.c
5 * PURPOSE: User-Mode Debugging Support, Internal Debug Functions.
7 * PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
10 /* INCLUDES *****************************************************************/
14 #include <internal/debug.h>
16 /* FUNCTIONS *****************************************************************/
20 DbgkCreateThread(PVOID StartAddress
)
23 LPC_DBG_MESSAGE Message
;
24 LPC_DBG_MESSAGE Reply
;
27 if (PsGetCurrentThread()->ThreadsProcess
->DebugPort
== NULL
)
32 Message
.Header
.MessageSize
= sizeof(LPC_DBG_MESSAGE
);
33 Message
.Header
.DataSize
= sizeof(LPC_DBG_MESSAGE
) -
35 Message
.Type
= DBG_EVENT_CREATE_THREAD
;
36 Message
.Status
= STATUS_SUCCESS
;
37 Message
.Data
.CreateThread
.Reserved
= 0;
38 Message
.Data
.CreateThread
.StartAddress
= StartAddress
;
40 /* FIXME: Freeze all threads in process */
42 /* Send the message to the process's debug port and wait for a reply */
44 LpcSendDebugMessagePort(PsGetCurrentThread()->ThreadsProcess
->DebugPort
,
47 if (!NT_SUCCESS(Status
))
52 /* FIXME: Examine reply */