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
eaf709fb
Commit
eaf709fb
authored
Sep 13, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
Sep 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Implement CreateProcessAsUserA.
parent
ac615a7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
security.c
dlls/advapi32/security.c
+37
-2
No files found.
dlls/advapi32/security.c
View file @
eaf709fb
...
...
@@ -5091,11 +5091,46 @@ BOOL WINAPI CreateProcessAsUserA(
LPSTARTUPINFOA
lpStartupInfo
,
LPPROCESS_INFORMATION
lpProcessInformation
)
{
FIXME
(
"%p %s %s %p %p %d 0x%08x %p %s %p %p - stub
\n
"
,
hToken
,
debugstr_a
(
lpApplicationName
),
BOOL
ret
;
WCHAR
*
appW
,
*
cmdlnW
,
*
cwdW
;
STARTUPINFOW
sinfo
;
TRACE
(
"%p %s %s %p %p %d 0x%08x %p %s %p %p
\n
"
,
hToken
,
debugstr_a
(
lpApplicationName
),
debugstr_a
(
lpCommandLine
),
lpProcessAttributes
,
lpThreadAttributes
,
bInheritHandles
,
dwCreationFlags
,
lpEnvironment
,
debugstr_a
(
lpCurrentDirectory
),
lpStartupInfo
,
lpProcessInformation
);
return
FALSE
;
appW
=
SERV_dup
(
lpApplicationName
);
cmdlnW
=
SERV_dup
(
lpCommandLine
);
cwdW
=
SERV_dup
(
lpCurrentDirectory
);
sinfo
.
cb
=
sizeof
(
sinfo
);
sinfo
.
lpReserved
=
SERV_dup
(
lpStartupInfo
->
lpReserved
);
sinfo
.
lpDesktop
=
SERV_dup
(
lpStartupInfo
->
lpDesktop
);
sinfo
.
lpTitle
=
SERV_dup
(
lpStartupInfo
->
lpTitle
);
sinfo
.
dwX
=
lpStartupInfo
->
dwX
;
sinfo
.
dwY
=
lpStartupInfo
->
dwY
;
sinfo
.
dwXSize
=
lpStartupInfo
->
dwXSize
;
sinfo
.
dwYSize
=
lpStartupInfo
->
dwYSize
;
sinfo
.
dwXCountChars
=
lpStartupInfo
->
dwXCountChars
;
sinfo
.
dwYCountChars
=
lpStartupInfo
->
dwYCountChars
;
sinfo
.
dwFillAttribute
=
lpStartupInfo
->
dwFillAttribute
;
sinfo
.
dwFlags
=
lpStartupInfo
->
dwFlags
;
sinfo
.
wShowWindow
=
lpStartupInfo
->
wShowWindow
;
sinfo
.
cbReserved2
=
lpStartupInfo
->
cbReserved2
;
sinfo
.
lpReserved2
=
lpStartupInfo
->
lpReserved2
;
sinfo
.
hStdInput
=
lpStartupInfo
->
hStdInput
;
sinfo
.
hStdOutput
=
lpStartupInfo
->
hStdOutput
;
sinfo
.
hStdError
=
lpStartupInfo
->
hStdError
;
ret
=
CreateProcessAsUserW
(
hToken
,
appW
,
cmdlnW
,
lpProcessAttributes
,
lpThreadAttributes
,
bInheritHandles
,
dwCreationFlags
,
lpEnvironment
,
cwdW
,
&
sinfo
,
lpProcessInformation
);
HeapFree
(
GetProcessHeap
(),
0
,
appW
);
HeapFree
(
GetProcessHeap
(),
0
,
cmdlnW
);
HeapFree
(
GetProcessHeap
(),
0
,
cwdW
);
HeapFree
(
GetProcessHeap
(),
0
,
sinfo
.
lpReserved
);
HeapFree
(
GetProcessHeap
(),
0
,
sinfo
.
lpDesktop
);
HeapFree
(
GetProcessHeap
(),
0
,
sinfo
.
lpTitle
);
return
ret
;
}
BOOL
WINAPI
CreateProcessAsUserW
(
...
...
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