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
0e1cbfd5
Commit
0e1cbfd5
authored
Dec 26, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Dec 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to not rely on rundll32.exe any more.
parent
69249675
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
+27
-18
control.c
programs/control/control.c
+27
-18
No files found.
programs/control/control.c
View file @
0e1cbfd5
...
...
@@ -12,13 +12,13 @@
void
launch
(
char
what
[
255
])
{
H
INSTANCE
hChil
d
;
char
szArgs
[
255
]
;
H
MODULE
hMo
d
;
FARPROC
pControl_RunDLL
;
lstrcpy
(
szArgs
,
szEXEC_ARGS
);
strcat
(
szArgs
,
what
);
hChild
=
ShellExecute
((
HWND
)
0
,
0
,
szEXEC_PREFIX
,
szArgs
,
""
,
SW_SHOWNORMAL
);
hMod
=
LoadLibrary
(
"shell32.dll"
);
pControl_RunDLL
=
GetProcAddress
(
hMod
,
"Control_RunDLL"
);
pControl_RunDLL
(
GetDesktopWindow
(),
0
,
what
,
SW_SHOW
);
FreeLibrary
(
hMod
);
exit
(
0
);
}
...
...
@@ -35,18 +35,27 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, CHAR *szParam, INT argc)
break
;
case
1
:
/* check for optional parameter */
if
(
strcmp
(
szParams
,
szP_DESKTOP
)
==
0
)
launch
(
szC_DESKTOP
);
if
(
strcmp
(
szParams
,
szP_COLOR
)
==
0
)
launch
(
szC_COLOR
);
if
(
strcmp
(
szParams
,
szP_DATETIME
)
==
0
)
launch
(
szC_DATETIME
);
if
(
strcmp
(
szParams
,
szP_DESKTOP
)
==
0
)
launch
(
szC_DESKTOP
);
if
(
strcmp
(
szParams
,
szP_INTERNATIONAL
)
==
0
)
launch
(
szC_INTERNATIONAL
);
if
(
strcmp
(
szParams
,
szP_KEYBOARD
)
==
0
)
launch
(
szC_KEYBOARD
);
if
(
strcmp
(
szParams
,
szP_MOUSE
)
==
0
)
launch
(
szC_MOUSE
);
if
(
strcmp
(
szParams
,
szP_PORTS
)
==
0
)
launch
(
szC_PORTS
);
if
(
strcmp
(
szParams
,
szP_PRINTERS
)
==
0
)
launch
(
szC_PRINTERS
);
/* couldn't recognize desired panel, going default mode */
launch
(
""
);
if
(
!
strcmp
(
szParams
,
szP_DESKTOP
))
launch
(
szC_DESKTOP
);
if
(
!
strcmp
(
szParams
,
szP_COLOR
))
launch
(
szC_COLOR
);
if
(
!
strcmp
(
szParams
,
szP_DATETIME
))
launch
(
szC_DATETIME
);
if
(
!
strcmp
(
szParams
,
szP_DESKTOP
))
launch
(
szC_DESKTOP
);
if
(
!
strcmp
(
szParams
,
szP_INTERNATIONAL
))
launch
(
szC_INTERNATIONAL
);
if
(
!
strcmp
(
szParams
,
szP_KEYBOARD
))
launch
(
szC_KEYBOARD
);
if
(
!
strcmp
(
szParams
,
szP_MOUSE
))
launch
(
szC_MOUSE
);
if
(
!
strcmp
(
szParams
,
szP_PORTS
))
launch
(
szC_PORTS
);
if
(
!
strcmp
(
szParams
,
szP_PRINTERS
))
launch
(
szC_PRINTERS
);
/* try to launch if a .cpl file is given directly */
launch
(
szParams
);
break
;
default:
printf
(
"Syntax error."
);
...
...
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