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
69029d70
Commit
69029d70
authored
Mar 04, 2018
by
Michael Müller
Committed by
Alexandre Julliard
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement ProcessImageFileNameWin32 in NtQueryInformationProcess.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9be6ff40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
process.c
dlls/kernel32/tests/process.c
+10
-6
process.c
dlls/ntdll/process.c
+2
-2
winternl.h
include/winternl.h
+9
-0
No files found.
dlls/kernel32/tests/process.c
View file @
69029d70
...
...
@@ -3501,16 +3501,16 @@ static void test_process_info(void)
sizeof
(
buf
)
/* ProcessHandleTracing */
,
sizeof
(
ULONG
)
/* ProcessIoPriority */
,
sizeof
(
ULONG
)
/* ProcessExecuteFlags */
,
#if 0 /* FIXME: Add remaining classes */
ProcessResourceManagement,
sizeof(ULONG) /* ProcessCookie */,
0
/* FIXME: sizeof(?) ProcessTlsInformation */
,
0
/* FIXME: sizeof(?) ProcessCookie */
,
sizeof
(
SECTION_IMAGE_INFORMATION
)
/* ProcessImageInformation */
,
sizeof(PROCESS_CYCLE_TIME_INFORMATION) /*
ProcessCycleTime */,
0
/* FIXME: sizeof(PROCESS_CYCLE_TIME_INFORMATION)
ProcessCycleTime */
,
sizeof
(
ULONG
)
/* ProcessPagePriority */
,
40
/* ProcessInstrumentationCallback */
,
sizeof(PROCESS_STACK_ALLOCATION_INFORMATION) /*
ProcessThreadStackAllocation */,
sizeof(PROCESS_WS_WATCH_INFORMATION_EX[]) /*
ProcessWorkingSetWatchEx */,
0
/* FIXME: sizeof(PROCESS_STACK_ALLOCATION_INFORMATION)
ProcessThreadStackAllocation */
,
0
/* FIXME: sizeof(PROCESS_WS_WATCH_INFORMATION_EX[])
ProcessWorkingSetWatchEx */
,
sizeof
(
buf
)
/* ProcessImageFileNameWin32 */
,
#if 0 /* FIXME: Add remaining classes */
sizeof(HANDLE) /* ProcessImageFileMapping */,
sizeof(PROCESS_AFFINITY_UPDATE_MODE) /* ProcessAffinityUpdateMode */,
sizeof(PROCESS_MEMORY_ALLOCATION_MODE) /* ProcessMemoryAllocationMode */,
...
...
@@ -3582,6 +3582,9 @@ static void test_process_info(void)
case
ProcessDefaultHardErrorMode
:
case
ProcessHandleCount
:
case
ProcessImageFileName
:
case
ProcessImageInformation
:
case
ProcessPagePriority
:
case
ProcessImageFileNameWin32
:
ok
(
status
==
STATUS_SUCCESS
,
"for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)
\n
"
,
i
,
status
,
ret_len
);
break
;
...
...
@@ -3599,6 +3602,7 @@ static void test_process_info(void)
case
ProcessExecuteFlags
:
case
ProcessDebugPort
:
case
ProcessDebugFlags
:
case
ProcessCookie
:
todo_wine
ok
(
status
==
STATUS_ACCESS_DENIED
,
"for info %u expected STATUS_ACCESS_DENIED, got %08x (ret_len %u)
\n
"
,
i
,
status
,
ret_len
);
break
;
...
...
dlls/ntdll/process.c
View file @
69029d70
...
...
@@ -515,8 +515,8 @@ NTSTATUS WINAPI NtQueryInformationProcess(
}
break
;
case
ProcessImageFileName
:
/* FIXME:
this will return a DOS path. Windows returns an NT path. Changing this would require also changing kernel32.QueryFullProcessImageName.
* The latter may be harder because of the lack of RtlNtPathNameToDosPathName. */
/* FIXME:
Should return a device path */
case
ProcessImageFileNameWin32
:
SERVER_START_REQ
(
get_dll_info
)
{
UNICODE_STRING
*
image_file_name_str
=
ProcessInformation
;
...
...
include/winternl.h
View file @
69029d70
...
...
@@ -853,6 +853,15 @@ typedef enum _PROCESSINFOCLASS {
ProcessDebugFlags
=
31
,
ProcessHandleTracing
=
32
,
ProcessExecuteFlags
=
34
,
ProcessTlsInformation
=
35
,
ProcessCookie
=
36
,
ProcessImageInformation
=
37
,
ProcessCycleTime
=
38
,
ProcessPagePriority
=
39
,
ProcessInstrumentationCallback
=
40
,
ProcessThreadStackAllocation
=
41
,
ProcessWorkingSetWatchEx
=
42
,
ProcessImageFileNameWin32
=
43
,
MaxProcessInfoClass
}
PROCESSINFOCLASS
,
PROCESS_INFORMATION_CLASS
;
...
...
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