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
97f2cbc1
Commit
97f2cbc1
authored
Sep 04, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add support for NtSetInformationProcess(ProcessExecuteFlags).
parent
454a241e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
process.c
dlls/ntdll/process.c
+22
-0
winternl.h
include/winternl.h
+5
-0
No files found.
dlls/ntdll/process.c
View file @
97f2cbc1
...
...
@@ -389,6 +389,28 @@ NTSTATUS WINAPI NtSetInformationProcess(
SERVER_END_REQ
;
}
break
;
case
ProcessExecuteFlags
:
if
(
ProcessInformationLength
!=
sizeof
(
ULONG
))
return
STATUS_INVALID_PARAMETER
;
else
{
BOOL
enable
;
switch
(
*
(
ULONG
*
)
ProcessInformation
&
(
MEM_EXECUTE_OPTION_ENABLE
|
MEM_EXECUTE_OPTION_DISABLE
))
{
case
MEM_EXECUTE_OPTION_ENABLE
:
enable
=
FALSE
;
break
;
case
MEM_EXECUTE_OPTION_DISABLE
:
enable
=
TRUE
;
break
;
default:
return
STATUS_INVALID_PARAMETER
;
}
VIRTUAL_SetForceExec
(
enable
);
}
break
;
default:
FIXME
(
"(%p,0x%08x,%p,0x%08x) stub
\n
"
,
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
...
...
include/winternl.h
View file @
97f2cbc1
...
...
@@ -665,9 +665,14 @@ typedef enum _PROCESSINFOCLASS {
ProcessDebugObjectHandle
=
30
,
ProcessDebugFlags
=
31
,
ProcessHandleTracing
=
32
,
ProcessExecuteFlags
=
34
,
MaxProcessInfoClass
}
PROCESSINFOCLASS
,
PROCESS_INFORMATION_CLASS
;
#define MEM_EXECUTE_OPTION_DISABLE 0x01
#define MEM_EXECUTE_OPTION_ENABLE 0x02
#define MEM_EXECUTE_OPTION_PERMANENT 0x08
typedef
enum
_SECTION_INHERIT
{
ViewShare
=
1
,
ViewUnmap
=
2
...
...
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