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
65df36c1
Commit
65df36c1
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 ObOpenObjectByName.
Signed-off-by:
Derek Lesho
<
dlesho@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b59bf31f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+32
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
65df36c1
...
...
@@ -2806,6 +2806,38 @@ NTSTATUS WINAPI ObReferenceObjectByName( UNICODE_STRING *ObjectName,
}
/********************************************************************
* ObOpenObjectByName (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
ObOpenObjectByName
(
POBJECT_ATTRIBUTES
attr
,
POBJECT_TYPE
type
,
KPROCESSOR_MODE
mode
,
ACCESS_STATE
*
access_state
,
ACCESS_MASK
access
,
PVOID
ctx
,
HANDLE
*
handle
)
{
NTSTATUS
status
;
void
*
object
;
TRACE
(
"attr(%p %s %x) %p %u %p %u %p %p
\n
"
,
attr
->
RootDirectory
,
debugstr_us
(
attr
->
ObjectName
),
attr
->
Attributes
,
type
,
mode
,
access_state
,
access
,
ctx
,
handle
);
if
(
mode
!=
KernelMode
)
{
FIXME
(
"UserMode access not implemented
\n
"
);
return
STATUS_NOT_IMPLEMENTED
;
}
if
(
attr
->
RootDirectory
)
FIXME
(
"RootDirectory unhandled
\n
"
);
status
=
ObReferenceObjectByName
(
attr
->
ObjectName
,
attr
->
Attributes
,
access_state
,
access
,
type
,
mode
,
ctx
,
&
object
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
status
=
ObOpenObjectByPointer
(
object
,
attr
->
Attributes
,
access_state
,
access
,
type
,
mode
,
handle
);
ObDereferenceObject
(
object
);
return
status
;
}
/***********************************************************************
* ObReferenceObjectByPointer (NTOSKRNL.EXE.@)
*/
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
65df36c1
...
...
@@ -835,7 +835,7 @@
@ stub ObInsertObject
@ stub ObLogSecurityDescriptor
@ stub ObMakeTemporaryObject
@ st
ub ObOpenObjectByName
@ st
dcall ObOpenObjectByName(ptr ptr long ptr long ptr ptr)
@ stdcall ObOpenObjectByPointer(ptr long ptr long ptr long ptr)
@ stdcall ObQueryNameString(ptr ptr long ptr)
@ stub ObQueryObjectAuditingByHandle
...
...
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