3 * Copyright (C) 1998 by Marcel Baur <mbaur@g26.ethz.ch>
4 * To be distributed under the Wine license
13 void launch(char what
[255])
18 lstrcpy(szArgs
, szEXEC_ARGS
);
21 hChild
= ShellExecute((HWND
)0, 0, szEXEC_PREFIX
, szArgs
, "", SW_SHOWNORMAL
);
25 int WINAPI
WinMain(HINSTANCE hInst
, HINSTANCE hPrev
, CHAR
*szParam
, INT argc
)
29 lstrcpy(szParams
, szParam
);
33 case 0: /* no parameters - pop up whole "Control Panel" by default */
37 case 1: /* check for optional parameter */
38 if (strcmp(szParams
,szP_DESKTOP
) ==0) launch(szC_DESKTOP
);
39 if (strcmp(szParams
,szP_COLOR
) ==0) launch(szC_COLOR
);
40 if (strcmp(szParams
,szP_DATETIME
) ==0) launch(szC_DATETIME
);
41 if (strcmp(szParams
,szP_DESKTOP
) ==0) launch(szC_DESKTOP
);
42 if (strcmp(szParams
,szP_INTERNATIONAL
)==0) launch(szC_INTERNATIONAL
);
43 if (strcmp(szParams
,szP_KEYBOARD
) ==0) launch(szC_KEYBOARD
);
44 if (strcmp(szParams
,szP_MOUSE
) ==0) launch(szC_MOUSE
);
45 if (strcmp(szParams
,szP_PORTS
) ==0) launch(szC_PORTS
);
46 if (strcmp(szParams
,szP_PRINTERS
) ==0) launch(szC_PRINTERS
);
48 /* couldn't recognize desired panel, going default mode */
52 default: printf("Syntax error.");