Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
17c57737
Commit
17c57737
authored
Sep 27, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Fix the PsCreateSystemThread() prototype and declare it in wdm.h.
Add a prototype for PsTerminateSystemThread().
parent
4b340fff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+1
-1
wdm.h
include/ddk/wdm.h
+3
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
17c57737
...
...
@@ -483,7 +483,7 @@ void WINAPI MmFreeNonCachedMemory( void *addr, SIZE_T size )
NTSTATUS
WINAPI
PsCreateSystemThread
(
PHANDLE
ThreadHandle
,
ULONG
DesiredAccess
,
POBJECT_ATTRIBUTES
ObjectAttributes
,
HANDLE
ProcessHandle
,
PCLIENT_ID
ClientId
,
P
VOID
StartRoutine
,
PVOID
StartContext
)
P
KSTART_ROUTINE
StartRoutine
,
PVOID
StartContext
)
{
if
(
!
ProcessHandle
)
ProcessHandle
=
GetCurrentProcess
();
return
RtlCreateUserThread
(
ProcessHandle
,
0
,
FALSE
,
0
,
0
,
...
...
include/ddk/wdm.h
View file @
17c57737
...
...
@@ -37,6 +37,7 @@ struct _DEVICE_OBJECT;
struct
_DRIVER_OBJECT
;
typedef
VOID
(
WINAPI
*
PKDEFERRED_ROUTINE
)(
struct
_KDPC
*
,
PVOID
,
PVOID
,
PVOID
);
typedef
VOID
(
WINAPI
*
PKSTART_ROUTINE
)(
PVOID
);
typedef
NTSTATUS
(
WINAPI
*
PDRIVER_INITIALIZE
)(
struct
_DRIVER_OBJECT
*
,
PUNICODE_STRING
);
typedef
NTSTATUS
(
WINAPI
*
PDRIVER_DISPATCH
)(
struct
_DEVICE_OBJECT
*
,
struct
_IRP
*
);
...
...
@@ -889,11 +890,13 @@ ULONG WINAPI KeQueryTimeIncrement(void);
PVOID
WINAPI
MmAllocateNonCachedMemory
(
SIZE_T
);
void
WINAPI
MmFreeNonCachedMemory
(
PVOID
,
SIZE_T
);
NTSTATUS
WINAPI
PsCreateSystemThread
(
PHANDLE
,
ULONG
,
POBJECT_ATTRIBUTES
,
HANDLE
,
PCLIENT_ID
,
PKSTART_ROUTINE
,
PVOID
);
#define PsGetCurrentProcess() IoGetCurrentProcess()
#define PsGetCurrentThread() ((PETHREAD)KeGetCurrentThread())
HANDLE
WINAPI
PsGetCurrentProcessId
(
void
);
HANDLE
WINAPI
PsGetCurrentThreadId
(
void
);
BOOLEAN
WINAPI
PsGetVersion
(
ULONG
*
,
ULONG
*
,
ULONG
*
,
UNICODE_STRING
*
);
NTSTATUS
WINAPI
PsTerminateSystemThread
(
NTSTATUS
);
NTSTATUS
WINAPI
ZwAddBootEntry
(
PUNICODE_STRING
,
PUNICODE_STRING
);
NTSTATUS
WINAPI
ZwAccessCheckAndAuditAlarm
(
PUNICODE_STRING
,
HANDLE
,
PUNICODE_STRING
,
PUNICODE_STRING
,
PSECURITY_DESCRIPTOR
,
ACCESS_MASK
,
PGENERIC_MAPPING
,
BOOLEAN
,
PACCESS_MASK
,
PBOOLEAN
,
PBOOLEAN
);
...
...
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