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
aa546ef6
Commit
aa546ef6
authored
Mar 13, 1999
by
Peter Ganten
Committed by
Alexandre Julliard
Mar 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change GetStartupInfoA/W to return the real StartupInfo.
parent
4a6af35b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
19 deletions
+39
-19
init.c
win32/init.c
+39
-19
No files found.
win32/init.c
View file @
aa546ef6
...
...
@@ -2,6 +2,7 @@
* Win32 kernel functions
*
* Copyright 1995 Martin von Loewis and Cameron Heide
* 1999 Peter Ganten
*/
#include <string.h>
...
...
@@ -13,23 +14,28 @@
#include "heap.h"
#include "task.h"
#include "debug.h"
#include "process.h"
/***********************************************************************
* GetStartupInfoA (KERNEL32.273)
*/
VOID
WINAPI
GetStartupInfoA
(
LPSTARTUPINFOA
lpStartupInfo
)
{
lpStartupInfo
->
cb
=
sizeof
(
STARTUPINFOA
);
lpStartupInfo
->
lpReserved
=
"<Reserved>"
;
lpStartupInfo
->
lpDesktop
=
"Desktop"
;
lpStartupInfo
->
lpTitle
=
"Title"
;
LPSTARTUPINFOA
startup
;
startup
=
((
LPSTARTUPINFOA
)
PROCESS_Current
()
->
env_db
->
startup_info
);
memcpy
(
lpStartupInfo
,
startup
,
sizeof
(
STARTUPINFOA
)
);
lpStartupInfo
->
cbReserved2
=
0
;
lpStartupInfo
->
lpReserved2
=
NULL
;
/* must be NULL for VC runtime */
lpStartupInfo
->
dwFlags
=
STARTF_USESTDHANDLES
;
lpStartupInfo
->
hStdInput
=
(
HANDLE
)
0
;
lpStartupInfo
->
hStdOutput
=
(
HANDLE
)
1
;
lpStartupInfo
->
hStdError
=
(
HANDLE
)
2
;
TRACE
(
win32
,
"size: %ld
\n
"
"
\t
lpReserverd: %s, lpDesktop: %s, lpTitle: %s
\n
"
"
\t
dwX: %ld, dwY: %ld, dwXSize: %ld, dwYSize: %ld
\n
"
"
\t
dwFlags: %lx, wShowWindow: %x
\n
"
,
lpStartupInfo
->
cb
,
lpStartupInfo
->
lpReserved
,
lpStartupInfo
->
lpDesktop
,
lpStartupInfo
->
lpTitle
,
lpStartupInfo
->
dwX
,
lpStartupInfo
->
dwY
,
lpStartupInfo
->
dwXSize
,
lpStartupInfo
->
dwYSize
,
lpStartupInfo
->
dwFlags
,
lpStartupInfo
->
wShowWindow
);
}
/***********************************************************************
...
...
@@ -37,16 +43,30 @@ VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA lpStartupInfo)
*/
VOID
WINAPI
GetStartupInfoW
(
LPSTARTUPINFOW
lpStartupInfo
)
{
lpStartupInfo
->
cb
=
sizeof
(
STARTUPINFOW
);
lpStartupInfo
->
lpReserved
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
"<Reserved>"
);
lpStartupInfo
->
lpDesktop
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
"Desktop"
);
lpStartupInfo
->
lpTitle
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
"Title"
);
lpStartupInfo
->
cbReserved2
=
0
;
lpStartupInfo
->
lpReserved2
=
NULL
;
/* must be NULL for VC runtime */
lpStartupInfo
->
hStdInput
=
(
HANDLE
)
0
;
lpStartupInfo
->
hStdOutput
=
(
HANDLE
)
1
;
lpStartupInfo
->
hStdError
=
(
HANDLE
)
2
;
STARTUPINFOA
startup
;
GetStartupInfoA
(
&
startup
);
lpStartupInfo
->
cb
=
sizeof
(
STARTUPINFOW
);
lpStartupInfo
->
lpReserved
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
startup
.
lpReserved
);
lpStartupInfo
->
lpDesktop
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
startup
.
lpDesktop
);
lpStartupInfo
->
lpTitle
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
startup
.
lpTitle
);
lpStartupInfo
->
dwX
=
startup
.
dwX
;
lpStartupInfo
->
dwY
=
startup
.
dwY
;
lpStartupInfo
->
dwXSize
=
startup
.
dwXSize
;
lpStartupInfo
->
dwXCountChars
=
startup
.
dwXCountChars
;
lpStartupInfo
->
dwYCountChars
=
startup
.
dwYCountChars
;
lpStartupInfo
->
dwFillAttribute
=
startup
.
dwFillAttribute
;
lpStartupInfo
->
dwFlags
=
startup
.
dwFlags
;
lpStartupInfo
->
wShowWindow
=
startup
.
wShowWindow
;
lpStartupInfo
->
cbReserved2
=
startup
.
cbReserved2
;
lpStartupInfo
->
lpReserved2
=
startup
.
lpReserved2
;
lpStartupInfo
->
hStdInput
=
startup
.
hStdInput
;
lpStartupInfo
->
hStdOutput
=
startup
.
hStdOutput
;
lpStartupInfo
->
hStdError
=
startup
.
hStdError
;
}
/***********************************************************************
...
...
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