Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
16a7976d
Commit
16a7976d
authored
Aug 25, 2021
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add NtTraceControl/ZwTraceControl stubs.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9521640a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
1 deletion
+38
-1
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-0
debug.c
dlls/ntdll/unix/debug.c
+15
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+2
-0
sync.c
dlls/wow64/sync.c
+16
-0
syscall.h
dlls/wow64/syscall.h
+1
-0
winternl.h
include/winternl.h
+2
-1
No files found.
dlls/ntdll/ntdll.spec
View file @
16a7976d
...
@@ -414,6 +414,7 @@
...
@@ -414,6 +414,7 @@
@ stdcall -syscall NtTerminateProcess(long long)
@ stdcall -syscall NtTerminateProcess(long long)
@ stdcall -syscall NtTerminateThread(long long)
@ stdcall -syscall NtTerminateThread(long long)
@ stdcall -syscall NtTestAlert()
@ stdcall -syscall NtTestAlert()
@ stdcall -syscall NtTraceControl(long ptr long ptr long long)
# @ stub NtTraceEvent
# @ stub NtTraceEvent
# @ stub NtTranslateFilePath
# @ stub NtTranslateFilePath
@ stdcall -syscall NtUnloadDriver(ptr)
@ stdcall -syscall NtUnloadDriver(ptr)
...
@@ -1435,6 +1436,7 @@
...
@@ -1435,6 +1436,7 @@
@ stdcall -private -syscall ZwTerminateProcess(long long) NtTerminateProcess
@ stdcall -private -syscall ZwTerminateProcess(long long) NtTerminateProcess
@ stdcall -private -syscall ZwTerminateThread(long long) NtTerminateThread
@ stdcall -private -syscall ZwTerminateThread(long long) NtTerminateThread
@ stdcall -private -syscall ZwTestAlert() NtTestAlert
@ stdcall -private -syscall ZwTestAlert() NtTestAlert
@ stdcall -private -syscall ZwTraceControl(long ptr long ptr long long) NtTraceControl
# @ stub ZwTraceEvent
# @ stub ZwTraceEvent
# @ stub ZwTranslateFilePath
# @ stub ZwTranslateFilePath
@ stdcall -private -syscall ZwUnloadDriver(ptr) NtUnloadDriver
@ stdcall -private -syscall ZwUnloadDriver(ptr) NtUnloadDriver
...
...
dlls/ntdll/unix/debug.c
View file @
16a7976d
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
# include <unistd.h>
# include <unistd.h>
#endif
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "windef.h"
#include "winnt.h"
#include "winnt.h"
#include "winternl.h"
#include "winternl.h"
...
@@ -42,6 +44,7 @@
...
@@ -42,6 +44,7 @@
WINE_DECLARE_DEBUG_CHANNEL
(
pid
);
WINE_DECLARE_DEBUG_CHANNEL
(
pid
);
WINE_DECLARE_DEBUG_CHANNEL
(
timestamp
);
WINE_DECLARE_DEBUG_CHANNEL
(
timestamp
);
WINE_DEFAULT_DEBUG_CHANNEL
(
ntdll
);
struct
debug_info
struct
debug_info
{
{
...
@@ -328,3 +331,15 @@ void dbg_init(void)
...
@@ -328,3 +331,15 @@ void dbg_init(void)
options
[
nb_debug_options
]
=
default_option
;
options
[
nb_debug_options
]
=
default_option
;
init_done
=
TRUE
;
init_done
=
TRUE
;
}
}
/***********************************************************************
* NtTraceControl (NTDLL.@)
*/
NTSTATUS
WINAPI
NtTraceControl
(
ULONG
code
,
void
*
inbuf
,
ULONG
inbuf_len
,
void
*
outbuf
,
ULONG
outbuf_len
,
ULONG
*
size
)
{
FIXME
(
"code %u, inbuf %p, inbuf_len %u, outbuf %p, outbuf_len %u, size %p
\n
"
,
code
,
inbuf
,
inbuf_len
,
outbuf
,
outbuf_len
,
size
);
return
STATUS_SUCCESS
;
}
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
16a7976d
...
@@ -818,6 +818,7 @@
...
@@ -818,6 +818,7 @@
@ stdcall NtSetSecurityObject(long long ptr)
@ stdcall NtSetSecurityObject(long long ptr)
@ stdcall NtSetVolumeInformationFile(long ptr ptr long long)
@ stdcall NtSetVolumeInformationFile(long ptr ptr long long)
@ stdcall NtShutdownSystem(long)
@ stdcall NtShutdownSystem(long)
@ stdcall NtTraceControl(long ptr long ptr long long)
@ stub NtTraceEvent
@ stub NtTraceEvent
@ stdcall NtUnlockFile(long ptr ptr ptr ptr)
@ stdcall NtUnlockFile(long ptr ptr ptr ptr)
@ stub NtVdmControl
@ stub NtVdmControl
...
@@ -1514,6 +1515,7 @@
...
@@ -1514,6 +1515,7 @@
@ stdcall -private ZwSetVolumeInformationFile(long ptr ptr long long) NtSetVolumeInformationFile
@ stdcall -private ZwSetVolumeInformationFile(long ptr ptr long long) NtSetVolumeInformationFile
@ stdcall -private ZwTerminateJobObject(long long) NtTerminateJobObject
@ stdcall -private ZwTerminateJobObject(long long) NtTerminateJobObject
@ stdcall -private ZwTerminateProcess(long long) NtTerminateProcess
@ stdcall -private ZwTerminateProcess(long long) NtTerminateProcess
@ stdcall -private ZwTraceControl(long ptr long ptr long long) NtTraceControl
@ stub ZwTranslateFilePath
@ stub ZwTranslateFilePath
@ stdcall ZwUnloadDriver(ptr)
@ stdcall ZwUnloadDriver(ptr)
@ stdcall -private ZwUnloadKey(ptr) NtUnloadKey
@ stdcall -private ZwUnloadKey(ptr) NtUnloadKey
...
...
dlls/wow64/sync.c
View file @
16a7976d
...
@@ -1482,6 +1482,22 @@ NTSTATUS WINAPI wow64_NtTestAlert( UINT *args )
...
@@ -1482,6 +1482,22 @@ NTSTATUS WINAPI wow64_NtTestAlert( UINT *args )
/**********************************************************************
/**********************************************************************
* wow64_NtTraceControl
*/
NTSTATUS
WINAPI
wow64_NtTraceControl
(
UINT
*
args
)
{
ULONG
code
=
get_ulong
(
&
args
);
void
*
inbuf
=
get_ptr
(
&
args
);
ULONG
inbuf_len
=
get_ulong
(
&
args
);
void
*
outbuf
=
get_ptr
(
&
args
);
ULONG
outbuf_len
=
get_ulong
(
&
args
);
ULONG
*
size
=
get_ptr
(
&
args
);
return
NtTraceControl
(
code
,
inbuf
,
inbuf_len
,
outbuf
,
outbuf_len
,
size
);
}
/**********************************************************************
* wow64_NtWaitForDebugEvent
* wow64_NtWaitForDebugEvent
*/
*/
NTSTATUS
WINAPI
wow64_NtWaitForDebugEvent
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtWaitForDebugEvent
(
UINT
*
args
)
...
...
dlls/wow64/syscall.h
View file @
16a7976d
...
@@ -228,6 +228,7 @@
...
@@ -228,6 +228,7 @@
SYSCALL_ENTRY( NtTerminateProcess ) \
SYSCALL_ENTRY( NtTerminateProcess ) \
SYSCALL_ENTRY( NtTerminateThread ) \
SYSCALL_ENTRY( NtTerminateThread ) \
SYSCALL_ENTRY( NtTestAlert ) \
SYSCALL_ENTRY( NtTestAlert ) \
SYSCALL_ENTRY( NtTraceControl ) \
SYSCALL_ENTRY( NtUnloadDriver ) \
SYSCALL_ENTRY( NtUnloadDriver ) \
SYSCALL_ENTRY( NtUnloadKey ) \
SYSCALL_ENTRY( NtUnloadKey ) \
SYSCALL_ENTRY( NtUnlockFile ) \
SYSCALL_ENTRY( NtUnlockFile ) \
...
...
include/winternl.h
View file @
16a7976d
...
@@ -4009,7 +4009,7 @@ NTSYSAPI NTSTATUS WINAPI NtSetEvent(HANDLE,LONG*);
...
@@ -4009,7 +4009,7 @@ NTSYSAPI NTSTATUS WINAPI NtSetEvent(HANDLE,LONG*);
NTSYSAPI
NTSTATUS
WINAPI
NtSetHighEventPair
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetHighEventPair
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetHighWaitLowEventPair
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetHighWaitLowEventPair
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetHighWaitLowThread
(
VOID
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetHighWaitLowThread
(
VOID
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationDebugObject
(
HANDLE
,
DEBUGOBJECTINFOCLASS
,
PVOID
,
ULONG
,
ULONG
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationDebugObject
(
HANDLE
,
DEBUGOBJECTINFOCLASS
,
PVOID
,
ULONG
,
ULONG
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FILE_INFORMATION_CLASS
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FILE_INFORMATION_CLASS
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationJobObject
(
HANDLE
,
JOBOBJECTINFOCLASS
,
PVOID
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationJobObject
(
HANDLE
,
JOBOBJECTINFOCLASS
,
PVOID
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationKey
(
HANDLE
,
const
int
,
PVOID
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetInformationKey
(
HANDLE
,
const
int
,
PVOID
,
ULONG
);
...
@@ -4045,6 +4045,7 @@ NTSYSAPI NTSTATUS WINAPI NtTerminateJobObject(HANDLE,NTSTATUS);
...
@@ -4045,6 +4045,7 @@ NTSYSAPI NTSTATUS WINAPI NtTerminateJobObject(HANDLE,NTSTATUS);
NTSYSAPI
NTSTATUS
WINAPI
NtTerminateProcess
(
HANDLE
,
LONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtTerminateProcess
(
HANDLE
,
LONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtTerminateThread
(
HANDLE
,
LONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtTerminateThread
(
HANDLE
,
LONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtTestAlert
(
VOID
);
NTSYSAPI
NTSTATUS
WINAPI
NtTestAlert
(
VOID
);
NTSYSAPI
NTSTATUS
WINAPI
NtTraceControl
(
ULONG
,
void
*
,
ULONG
,
void
*
,
ULONG
,
ULONG
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtUnloadDriver
(
const
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtUnloadDriver
(
const
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtUnloadKey
(
POBJECT_ATTRIBUTES
);
NTSYSAPI
NTSTATUS
WINAPI
NtUnloadKey
(
POBJECT_ATTRIBUTES
);
NTSYSAPI
NTSTATUS
WINAPI
NtUnloadKeyEx
(
POBJECT_ATTRIBUTES
,
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtUnloadKeyEx
(
POBJECT_ATTRIBUTES
,
HANDLE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment