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
d1f10c50
Commit
d1f10c50
authored
Apr 11, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Apr 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented NtTerminateProcess and NtDisplayString.
parent
1b34697a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
4 deletions
+38
-4
nt.c
dlls/ntdll/nt.c
+33
-2
rtlstr.c
dlls/ntdll/rtlstr.c
+2
-0
ntddk.h
include/ntddk.h
+1
-0
ntdll.spec
relay32/ntdll.spec
+2
-2
No files found.
dlls/ntdll/nt.c
View file @
d1f10c50
...
...
@@ -68,6 +68,25 @@ NTSTATUS WINAPI NtQueryTimerResolution(DWORD x1,DWORD x2,DWORD x3)
*/
/******************************************************************************
* NtTerminateProcess [NTDLL.]
*
* Native applications must kill themselves when done
* FIXME: return value 0-success
*/
NTSTATUS
WINAPI
NtTerminateProcess
(
HANDLE
ProcessHandle
,
LONG
ExitStatus
)
{
TRACE
(
ntdll
,
"0x%08x 0x%08lx
\n
"
,
ProcessHandle
,
ExitStatus
);
/* win32 (0x7fffffff) to nt (-1) */
if
(
NtCurrentProcess
()
==
ProcessHandle
)
ProcessHandle
=
GetCurrentProcess
();
return
(
!
TerminateProcess
(
ProcessHandle
,
ExitStatus
));
}
/******************************************************************************
* NtQueryInformationProcess [NTDLL.]
*
*/
...
...
@@ -495,8 +514,20 @@ NTSTATUS WINAPI NtCreatePagingFile(
IN
ULONG
MaxiumSize
,
OUT
PULONG
ActualSize
)
{
FIXME
(
ntdll
,
"(%p,0x%08lx,0x%08lx,%p),stub!
\n
"
,
debugstr_w
(
PageFileName
->
Buffer
),
MiniumSize
,
MaxiumSize
,
ActualSize
);
FIXME
(
ntdll
,
"(%p
(%s)
,0x%08lx,0x%08lx,%p),stub!
\n
"
,
PageFileName
->
Buffer
,
debugstr_w
(
PageFileName
->
Buffer
),
MiniumSize
,
MaxiumSize
,
ActualSize
);
return
0
;
}
/******************************************************************************
* NtDisplayString [NTDLL.95]
*
* writes a string to the nt-textmode screen eg. during startup
*/
NTSTATUS
WINAPI
NtDisplayString
(
PUNICODE_STRING
string
)
{
TRACE
(
ntdll
,
"%p(%s)
\n
"
,
string
->
Buffer
,
debugstr_w
(
string
->
Buffer
));
WriteConsoleW
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
string
->
Buffer
,
string
->
Length
,
0
,
0
);
return
0
;
}
dlls/ntdll/rtlstr.c
View file @
d1f10c50
...
...
@@ -136,6 +136,8 @@ VOID WINAPI RtlInitString(PSTRING target,LPCSTR source)
*/
VOID
WINAPI
RtlInitUnicodeString
(
PUNICODE_STRING
target
,
LPCWSTR
source
)
{
TRACE
(
ntdll
,
"%p %p(%s)
\n
"
,
target
,
source
,
debugstr_w
(
source
));
target
->
Length
=
target
->
MaximumLength
=
0
;
target
->
Buffer
=
(
LPWSTR
)
source
;
if
(
!
source
)
...
...
include/ntddk.h
View file @
d1f10c50
...
...
@@ -291,6 +291,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
IN
ULONG
ProcessInformationLength
,
OUT
PULONG
ReturnLength
);
#define NtCurrentProcess() ( (HANDLE) -1 )
/*
* timer
...
...
relay32/ntdll.spec
View file @
d1f10c50
...
...
@@ -100,7 +100,7 @@ type win32
092 stub NtDeleteKey
093 stub NtDeleteValueKey
094 stdcall NtDeviceIoControlFile(long long long long long long long long long long) NtDeviceIoControlFile
095 st
ub
NtDisplayString
095 st
dcall NtDisplayString(ptr)
NtDisplayString
096 stdcall NtDuplicateObject(long long long long long long long) NtDuplicateObject
097 stdcall NtDuplicateToken(long long long long long long) NtDuplicateToken
098 stub NtEnumerateBus
...
...
@@ -235,7 +235,7 @@ type win32
227 stub NtStopProfile
228 stub NtSuspendThread
229 stub NtSystemDebugControl
230 st
ub
NtTerminateProcess
230 st
dcall NtTerminateProcess(long long)
NtTerminateProcess
231 stdcall NtTerminateThread(long long) NtTerminateThread
232 stub NtTestAlert
233 stub NtUnloadDriver
...
...
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