From 9e0d35856430caa9221af133ab673f26bc3fa50f Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Sun, 13 Feb 2005 02:11:22 +0000 Subject: [PATCH] Remove the old control apps from rosapps/control. svn path=/trunk/; revision=13522 --- rosapps/control/.cvsignore | 17 ---- rosapps/control/Makefile | 29 ------- rosapps/control/control.c | 116 ------------------------- rosapps/control/control.rc | 148 -------------------------------- rosapps/control/params.h | 46 ---------- rosapps/control/res/control.ico | Bin 1078 -> 0 bytes rosapps/control/res/small.ico | Bin 318 -> 0 bytes rosapps/control/resource.h | 19 ---- 8 files changed, 375 deletions(-) delete mode 100644 rosapps/control/.cvsignore delete mode 100644 rosapps/control/Makefile delete mode 100644 rosapps/control/control.c delete mode 100644 rosapps/control/control.rc delete mode 100644 rosapps/control/params.h delete mode 100644 rosapps/control/res/control.ico delete mode 100644 rosapps/control/res/small.ico delete mode 100644 rosapps/control/resource.h diff --git a/rosapps/control/.cvsignore b/rosapps/control/.cvsignore deleted file mode 100644 index 954ada33419..00000000000 --- a/rosapps/control/.cvsignore +++ /dev/null @@ -1,17 +0,0 @@ -*.sys -*.exe -*.dll -*.cpl -*.a -*.o -*.d -*.coff -*.dsp -*.dsw -*.aps -*.ncb -*.opt -*.sym -*.plg -*.bak -*.map diff --git a/rosapps/control/Makefile b/rosapps/control/Makefile deleted file mode 100644 index d68c810afc8..00000000000 --- a/rosapps/control/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $Id: Makefile,v 1.3 2003/01/15 19:55:28 robd Exp $ - -PATH_TO_TOP = ../../reactos - -TOOLS_PATH = $(PATH_TO_TOP)/tools - -TARGET_NORC = yes - -TARGET_TYPE = program - -TARGET_APPTYPE = windows - -TARGET_NAME = control - -TARGET_SDKLIBS = shell32.a - -TARGET_OBJECTS = $(TARGET_NAME).o - -TARGET_CLEAN = $(TARGET_OBJECTS) - -include $(PATH_TO_TOP)/rules.mak - -include $(TOOLS_PATH)/helper.mk - -MK_CFLAGS = -D_UNICODE -DUNICODE -MK_CPPFLAGS = -D_UNICODE -DUNICODE -MK_RCFLAGS = -D_UNICODE -DUNICODE - -# EOF diff --git a/rosapps/control/control.c b/rosapps/control/control.c deleted file mode 100644 index 6737efabe32..00000000000 --- a/rosapps/control/control.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Control - * Copyright (C) 1998 by Marcel Baur - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -/* - * Portions copyright Robert Dickenson , August 15, 2002. - */ - -#define WIN32_LEAN_AND_MEAN -#include -#include -#include -#include "params.h" - -//typedef void (WINAPI *CONTROL_RUNDLL)(HWND hWnd, HINSTANCE hInst, LPCTSTR cmd, DWORD nCmdShow); -typedef void (*CONTROL_RUNDLL)(HWND hWnd, HINSTANCE hInst, LPCTSTR cmd, DWORD nCmdShow); - -const TCHAR szLibName[] = _T("ROSHEL32.DLL"); -#ifdef UNICODE -const char szProcName[] = "Control_RunDLLW"; -#else -const char szProcName[] = "Control_RunDLLA"; -#endif - -#ifndef __GNUC__ -#ifdef UNICODE -extern void __declspec(dllimport) Control_RunDLLW(HWND hWnd, HINSTANCE hInst, LPCWSTR cmd, DWORD nCmdShow); -#else -extern void __declspec(dllimport) Control_RunDLLA(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdShow); -#endif -#endif - -#ifdef UNICODE -#define Control_RunDLL Control_RunDLLW -#else -#define Control_RunDLL Control_RunDLLA -#endif - - -void launch(LPTSTR lpCmdLine) -{ -#if 0 - HMODULE hShell32; - CONTROL_RUNDLL pControl_RunDLL; - - hShell32 = LoadLibrary(szLibName); - if (hShell32) { - pControl_RunDLL = (CONTROL_RUNDLL)(FARPROC)GetProcAddress(hShell32, szProcName); - if (pControl_RunDLL) { - pControl_RunDLL(GetDesktopWindow(), 0, lpCmdLine, SW_SHOW); - } else { - _tprintf(_T("ERROR: failed to Get Procedure Address for %s in Library %s\n"), szLibName, szProcName); - } - FreeLibrary(hShell32); - } else { - _tprintf(_T("ERROR: failed to Load Library %s\n"), szLibName); - } -#else - Control_RunDLL(GetDesktopWindow(), 0, lpCmdLine, SW_SHOW); -#endif - exit(0); -} - -int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, CHAR *szParam, INT argc) -{ - TCHAR szParams[255]; - LPTSTR pParams = GetCommandLine(); - lstrcpy(szParams, pParams); - CharUpper(szParams); - - _tprintf(_T("Control Panel Launcher...\n")); - - switch (--argc) { - case 0: /* no parameters - pop up whole "Control Panel" by default */ - launch(_T("")); - break; - case 1: /* check for optional parameter */ - if (!lstrcmp(szParams,szP_DESKTOP)) - launch(szC_DESKTOP); - if (!lstrcmp(szParams,szP_COLOR)) - launch(szC_COLOR); - if (!lstrcmp(szParams,szP_DATETIME)) - launch(szC_DATETIME); - if (!lstrcmp(szParams,szP_DESKTOP)) - launch(szC_DESKTOP); - if (!lstrcmp(szParams,szP_INTERNATIONAL)) - launch(szC_INTERNATIONAL); - if (!lstrcmp(szParams,szP_KEYBOARD)) - launch(szC_KEYBOARD); - if (!lstrcmp(szParams,szP_MOUSE)) - launch(szC_MOUSE); - if (!lstrcmp(szParams,szP_PORTS)) - launch(szC_PORTS); - if (!lstrcmp(szParams,szP_PRINTERS)) - launch(szC_PRINTERS); - /* try to launch if a .cpl file is given directly */ - launch(szParams); - break; - default: _tprintf(_T("Syntax error.")); - } - return 0; -} diff --git a/rosapps/control/control.rc b/rosapps/control/control.rc deleted file mode 100644 index d6109e679f0..00000000000 --- a/rosapps/control/control.rc +++ /dev/null @@ -1,148 +0,0 @@ -//Microsoft Developer Studio generated resource script. -// -#include "resource.h" - -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#define APSTUDIO_HIDDEN_SYMBOLS -#include "windows.h" -#undef APSTUDIO_HIDDEN_SYMBOLS -#include "resource.h" - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#pragma code_page(1252) -#endif //_WIN32 - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -2 TEXTINCLUDE DISCARDABLE -BEGIN - "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" - "#include ""windows.h""\r\n" - "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" - "#include ""resource.h""\r\n" - "\0" -END - -3 TEXTINCLUDE DISCARDABLE -BEGIN - "\r\n" - "\0" -END - -#endif // APSTUDIO_INVOKED - - -#ifndef _MAC -///////////////////////////////////////////////////////////////////////////// -// -// Version -// - -(1) VERSIONINFO - FILEVERSION 0,0,19,162 - PRODUCTVERSION 0,0,19,0 - FILEFLAGSMASK 0x3fL -#ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0x0L -#endif - FILEOS 0x40004L - FILETYPE 0x1L - FILESUBTYPE 0x0L -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904b0" - BEGIN - VALUE "Comments", "Absolutely no warranties whatsoever - Use at your own risk\0" - VALUE "CompanyName", "ReactOS Development Team\0" - VALUE "FileDescription", "ReactOS Control Panel by Robert Dickenson\0" - VALUE "FileVersion", "1, 0, 0, 1\0" - VALUE "InternalName", "control\0" - VALUE "LegalCopyright", "Copyright © 2002 Robert Dickenson\0" - VALUE "LegalTrademarks", "\0" - VALUE "OriginalFilename", "control.exe\0" - VALUE "PrivateBuild", "\0" - VALUE "ProductName", "ReactOS Operating System\0" - VALUE "ProductVersion", "0.0.19\0" - VALUE "SpecialBuild", "Non-versioned Development Beta Release\0" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0xc09, 1200 - END -END - -#endif // !_MAC - - -///////////////////////////////////////////////////////////////////////////// -// -// String Table -// - -STRINGTABLE DISCARDABLE -BEGIN - IDS_APP_TITLE "ReactOS Control Panel" - IDC_CONTROL "CONTROL" -END - -#endif // English (U.S.) resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// English (Australia) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS -#pragma code_page(1252) -#endif //_WIN32 - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE DISCARDABLE -BEGIN - "resource.h\0" -END - -#endif // APSTUDIO_INVOKED - -#endif // English (Australia) resources -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/rosapps/control/params.h b/rosapps/control/params.h deleted file mode 100644 index ae7637a2c3b..00000000000 --- a/rosapps/control/params.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Control - * Copyright (C) 1998 by Marcel Baur - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* alphabetical list of recognized optional command line parameters */ - -#define szP_COLOR _T("COLOR") -#define szP_DATETIME _T("DATE/TIME") -#define szP_DESKTOP _T("DESKTOP") -#define szP_INTERNATIONAL _T("INTERNATIONAL") -#define szP_KEYBOARD _T("KEYBOARD") -#define szP_MOUSE _T("MOUSE") -#define szP_PORTS _T("PORTS") -#define szP_PRINTERS _T("PRINTERS") - - -/* alphabetical list of appropriate commands to execute */ - -#define szEXEC_PREFIX _T("rundll32.exe") -#define szEXEC_ARGS _T("Shell32.dll,Control_RunDLL _T(") - -#define szC_COLOR _T("desk.cpl,,2") -#define szC_DATETIME _T("datetime.cpl") -#define szC_DESKTOP _T("desk.cpl") -#define szC_FONTS _T("main.cpl @3") -#define szC_INTERNATIONAL _T("intl.cpl") -#define szC_KEYBOARD _T("main.cpl @1") -#define szC_MOUSE _T("main.cpl") -#define szC_PORTS _T("sysdm.cpl,,1") -#define szC_PRINTERS _T("main.cpl @2") - diff --git a/rosapps/control/res/control.ico b/rosapps/control/res/control.ico deleted file mode 100644 index 386883523bcc032db77b69b047cbc5c15ae3b7fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1078 zcmeH_K@!3s3`IZHwe$$AoF2oYaWszOk{jR)NR>_(PRDWOZgV)&%Zp6VccBVa2?uQ&sh9LW;!?J w2dwKn!S@jnH5GJS10MR3&V{nkc?%F^XS#jrb=7ItXV>BJ*yg?&H~)SR4}%AClK=n! diff --git a/rosapps/control/res/small.ico b/rosapps/control/res/small.ico deleted file mode 100644 index 8f94d9aa8285725af1920f17fa4ba90a7dad97fc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmbu1u@S&92m|H2^tei$GGj6tBe4N_?3C#ONWzj2Y0z^{b=^ZcTR}S)7&>4n7JrdT ujNG@ttiTl!1hqz0y#czdCNotgVrj}ml}kwpjQ>