Remove the old control apps from rosapps/control.

svn path=/trunk/; revision=13522
This commit is contained in:
Steven Edwards 2005-02-13 02:11:22 +00:00
parent 9f1be875f3
commit 9e0d358564
8 changed files with 0 additions and 375 deletions

View file

@ -1,17 +0,0 @@
*.sys
*.exe
*.dll
*.cpl
*.a
*.o
*.d
*.coff
*.dsp
*.dsw
*.aps
*.ncb
*.opt
*.sym
*.plg
*.bak
*.map

View file

@ -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

View file

@ -1,116 +0,0 @@
/*
* Control
* Copyright (C) 1998 by Marcel Baur <mbaur@g26.ethz.ch>
*
* 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 <robd@reactos.org>, August 15, 2002.
*/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include <tchar.h>
#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;
}

View file

@ -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

View file

@ -1,46 +0,0 @@
/*
* Control
* Copyright (C) 1998 by Marcel Baur <mbaur@g26.ethz.ch>
*
* 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")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

View file

@ -1,19 +0,0 @@
//{{NO_DEPENDENCIES}}
// Used by control.rc
//
#define IDS_APP_TITLE 103
#define IDI_SMALL 104
#define IDC_CONTROL 105
#define IDC_STATIC -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 107
#define _APS_NEXT_COMMAND_VALUE 32700
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
#endif
#endif