Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
2418bb1d
Commit
2418bb1d
authored
Oct 08, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlCreateProcessParametersEx().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd60a33e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
12 deletions
+35
-12
env.c
dlls/ntdll/env.c
+33
-12
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/env.c
View file @
2418bb1d
...
...
@@ -434,18 +434,19 @@ static void append_unicode_string( void **data, const UNICODE_STRING *src,
/******************************************************************************
* RtlCreateProcessParameters [NTDLL.@]
* RtlCreateProcessParameters
Ex
[NTDLL.@]
*/
NTSTATUS
WINAPI
RtlCreateProcessParameters
(
RTL_USER_PROCESS_PARAMETERS
**
result
,
const
UNICODE_STRING
*
ImagePathName
,
const
UNICODE_STRING
*
DllPath
,
const
UNICODE_STRING
*
CurrentDirectoryName
,
const
UNICODE_STRING
*
CommandLine
,
PWSTR
Environment
,
const
UNICODE_STRING
*
WindowTitle
,
const
UNICODE_STRING
*
Desktop
,
const
UNICODE_STRING
*
ShellInfo
,
const
UNICODE_STRING
*
RuntimeInfo
)
NTSTATUS
WINAPI
RtlCreateProcessParametersEx
(
RTL_USER_PROCESS_PARAMETERS
**
result
,
const
UNICODE_STRING
*
ImagePathName
,
const
UNICODE_STRING
*
DllPath
,
const
UNICODE_STRING
*
CurrentDirectoryName
,
const
UNICODE_STRING
*
CommandLine
,
PWSTR
Environment
,
const
UNICODE_STRING
*
WindowTitle
,
const
UNICODE_STRING
*
Desktop
,
const
UNICODE_STRING
*
ShellInfo
,
const
UNICODE_STRING
*
RuntimeInfo
,
ULONG
flags
)
{
static
WCHAR
empty
[]
=
{
0
};
static
const
UNICODE_STRING
empty_str
=
{
0
,
sizeof
(
empty
),
empty
};
...
...
@@ -505,7 +506,8 @@ NTSTATUS WINAPI RtlCreateProcessParameters( RTL_USER_PROCESS_PARAMETERS **result
append_unicode_string
(
&
ptr
,
Desktop
,
&
params
->
Desktop
);
append_unicode_string
(
&
ptr
,
ShellInfo
,
&
params
->
ShellInfo
);
append_unicode_string
(
&
ptr
,
RuntimeInfo
,
&
params
->
RuntimeInfo
);
*
result
=
RtlDeNormalizeProcessParams
(
params
);
*
result
=
params
;
if
(
!
(
flags
&
PROCESS_PARAMS_FLAG_NORMALIZED
))
RtlDeNormalizeProcessParams
(
params
);
}
RtlReleasePebLock
();
return
status
;
...
...
@@ -513,6 +515,25 @@ NTSTATUS WINAPI RtlCreateProcessParameters( RTL_USER_PROCESS_PARAMETERS **result
/******************************************************************************
* RtlCreateProcessParameters [NTDLL.@]
*/
NTSTATUS
WINAPI
RtlCreateProcessParameters
(
RTL_USER_PROCESS_PARAMETERS
**
result
,
const
UNICODE_STRING
*
image
,
const
UNICODE_STRING
*
dllpath
,
const
UNICODE_STRING
*
curdir
,
const
UNICODE_STRING
*
cmdline
,
PWSTR
env
,
const
UNICODE_STRING
*
title
,
const
UNICODE_STRING
*
desktop
,
const
UNICODE_STRING
*
shellinfo
,
const
UNICODE_STRING
*
runtime
)
{
return
RtlCreateProcessParametersEx
(
result
,
image
,
dllpath
,
curdir
,
cmdline
,
env
,
title
,
desktop
,
shellinfo
,
runtime
,
0
);
}
/******************************************************************************
* RtlDestroyProcessParameters [NTDLL.@]
*/
void
WINAPI
RtlDestroyProcessParameters
(
RTL_USER_PROCESS_PARAMETERS
*
params
)
...
...
dlls/ntdll/ntdll.spec
View file @
2418bb1d
...
...
@@ -512,6 +512,7 @@
@ stdcall RtlCreateEnvironment(long ptr)
@ stdcall RtlCreateHeap(long ptr long long ptr ptr)
@ stdcall RtlCreateProcessParameters(ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr)
@ stdcall RtlCreateProcessParametersEx(ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr long)
@ stub RtlCreatePropertySet
@ stdcall RtlCreateQueryDebugBuffer(long long)
@ stdcall RtlCreateRegistryKey(long wstr)
...
...
include/winternl.h
View file @
2418bb1d
...
...
@@ -2609,6 +2609,7 @@ NTSYSAPI NTSTATUS WINAPI RtlCreateAtomTable(ULONG,RTL_ATOM_TABLE*);
NTSYSAPI
NTSTATUS
WINAPI
RtlCreateEnvironment
(
BOOLEAN
,
PWSTR
*
);
NTSYSAPI
HANDLE
WINAPI
RtlCreateHeap
(
ULONG
,
PVOID
,
SIZE_T
,
SIZE_T
,
PVOID
,
PRTL_HEAP_DEFINITION
);
NTSYSAPI
NTSTATUS
WINAPI
RtlCreateProcessParameters
(
RTL_USER_PROCESS_PARAMETERS
**
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
PWSTR
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlCreateProcessParametersEx
(
RTL_USER_PROCESS_PARAMETERS
**
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
PWSTR
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
RtlCreateSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
DWORD
);
NTSYSAPI
NTSTATUS
WINAPI
RtlCreateTimerQueue
(
PHANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
RtlCreateTimer
(
PHANDLE
,
HANDLE
,
RTL_WAITORTIMERCALLBACKFUNC
,
PVOID
,
DWORD
,
DWORD
,
ULONG
);
...
...
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