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
2a578eae
Commit
2a578eae
authored
Jul 16, 2020
by
Derek Lesho
Committed by
Alexandre Julliard
Aug 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeInitializeApc.
Signed-off-by:
Derek Lesho
<
dlesho@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
72540c93
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletion
+41
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+33
-0
wdm.h
include/ddk/wdm.h
+7
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
2a578eae
...
...
@@ -564,7 +564,7 @@
@ stub KeI386ReleaseLid
@ stub KeI386SetGdtSelector
@ stub KeIcacheFlushCount
@ st
ub KeInitializeApc
@ st
dcall KeInitializeApc(ptr ptr long ptr ptr ptr long ptr)
@ stub KeInitializeDeviceQueue
@ stdcall KeInitializeDpc(ptr ptr ptr)
@ stdcall KeInitializeEvent(ptr long long)
...
...
dlls/ntoskrnl.exe/sync.c
View file @
2a578eae
...
...
@@ -33,6 +33,7 @@
#include "wine/asm.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/server.h"
#include "ntoskrnl_private.h"
...
...
@@ -663,6 +664,38 @@ void WINAPI KeReleaseInStackQueuedSpinLock( KLOCK_QUEUE_HANDLE *queue )
}
#endif
/***********************************************************************
* KeInitializeApc (NTOSKRNL.EXE.@)
*/
void
WINAPI
KeInitializeApc
(
PRKAPC
apc
,
PRKTHREAD
thread
,
KAPC_ENVIRONMENT
env
,
PKKERNEL_ROUTINE
krnl_routine
,
PKRUNDOWN_ROUTINE
rundown_routine
,
PKNORMAL_ROUTINE
normal_routine
,
KPROCESSOR_MODE
apc_mode
,
PVOID
ctx
)
{
TRACE
(
"apc %p thread %p env %u krnl_routine %p rundown_routine %p normal_routine %p apc_mode %u ctx %p
\n
"
,
apc
,
thread
,
env
,
krnl_routine
,
rundown_routine
,
normal_routine
,
apc_mode
,
ctx
);
if
(
env
!=
OriginalApcEnvironment
)
FIXME
(
"Unhandled APC_ENVIRONMENT
\n
"
);
apc
->
Type
=
18
;
apc
->
Size
=
sizeof
(
*
apc
);
apc
->
Thread
=
thread
;
apc
->
ApcStateIndex
=
env
;
apc
->
KernelRoutine
=
krnl_routine
;
apc
->
RundownRoutine
=
rundown_routine
;
apc
->
NormalRoutine
=
normal_routine
;
apc
->
Inserted
=
FALSE
;
if
(
apc
->
NormalRoutine
)
{
apc
->
ApcMode
=
apc_mode
;
apc
->
NormalContext
=
ctx
;
}
else
{
apc
->
ApcMode
=
KernelMode
;
apc
->
NormalContext
=
NULL
;
}
}
static
KSPIN_LOCK
cancel_lock
;
/***********************************************************************
...
...
include/ddk/wdm.h
View file @
2a578eae
...
...
@@ -464,6 +464,13 @@ typedef struct _DRIVER_OBJECT *PDRIVER_OBJECT;
/* Irp definitions */
typedef
UCHAR
KIRQL
,
*
PKIRQL
;
typedef
CCHAR
KPROCESSOR_MODE
;
typedef
enum
_KAPC_ENVIRONMENT
{
OriginalApcEnvironment
,
AttachedApcEnvironment
,
CurrentApcEnvironment
,
InsertApcEnvironment
}
KAPC_ENVIRONMENT
,
*
PKAPC_ENVIRONMENT
;
typedef
VOID
(
WINAPI
*
PDRIVER_CANCEL
)(
IN
struct
_DEVICE_OBJECT
*
DeviceObject
,
...
...
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