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