mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:53:03 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
5
base/applications/cmdutils/hostname/CMakeLists.txt
Normal file
5
base/applications/cmdutils/hostname/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
add_executable(hostname hostname.c hostname.rc)
|
||||
set_module_type(hostname win32cui UNICODE)
|
||||
add_importlibs(hostname user32 msvcrt kernel32)
|
||||
add_cd_file(TARGET hostname DESTINATION reactos/system32 FOR all)
|
74
base/applications/cmdutils/hostname/hostname.c
Normal file
74
base/applications/cmdutils/hostname/hostname.c
Normal file
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* ReactOS Win32 Applications
|
||||
* Copyright (C) 2005 ReactOS Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
/*
|
||||
* COPYRIGHT : See COPYING in the top level directory
|
||||
* PROJECT : ReactOS/Win32 get host name
|
||||
* FILE : subsys/system/hostname/hostname.c
|
||||
* PROGRAMMER: Emanuele Aliberti (ea@reactos.com)
|
||||
*/
|
||||
|
||||
#include <conio.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
int wmain(int argc, WCHAR* argv[])
|
||||
{
|
||||
WCHAR Msg[100];
|
||||
|
||||
if (1 == argc)
|
||||
{
|
||||
WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1] = L"";
|
||||
DWORD ComputerNameSize = sizeof(ComputerName) / sizeof(ComputerName[0]);
|
||||
|
||||
if (!GetComputerName(ComputerName, &ComputerNameSize))
|
||||
{
|
||||
/* Fail in case of error */
|
||||
LoadStringW(GetModuleHandle(NULL), IDS_ERROR, Msg, 100);
|
||||
_cwprintf(L"%s %lu.\n", Msg, GetLastError());
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Print out the computer's name */
|
||||
_cwprintf(L"%s\n", ComputerName);
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((wcsicmp(argv[1], L"-s") == 0) || (wcsicmp(argv[1], L"/s") == 0))
|
||||
{
|
||||
/* The program doesn't allow the user to set the computer's name */
|
||||
LoadStringW(GetModuleHandle(NULL), IDS_NOSET, Msg, 100);
|
||||
_cwprintf(L"%s\n", Msg);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Let the user know what the program does */
|
||||
LoadStringW(GetModuleHandle(NULL), IDS_USAGE, Msg, 100);
|
||||
_cwprintf(L"\n%s\n\n", Msg);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EOF */
|
50
base/applications/cmdutils/hostname/hostname.rc
Normal file
50
base/applications/cmdutils/hostname/hostname.rc
Normal file
|
@ -0,0 +1,50 @@
|
|||
#include <windef.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "Host name application"
|
||||
#define REACTOS_STR_INTERNAL_NAME "hostname"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "hostname.exe"
|
||||
#include <reactos/version.rc>
|
||||
|
||||
/* UTF-8 */
|
||||
#pragma code_page(65001)
|
||||
|
||||
#ifdef LANGUAGE_CS_CZ
|
||||
#include "lang/cs-CZ.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_DE_DE
|
||||
#include "lang/de-DE.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_EN_US
|
||||
#include "lang/en-US.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_FR_FR
|
||||
#include "lang/fr-FR.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_IT_IT
|
||||
#include "lang/it-IT.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_PL_PL
|
||||
#include "lang/pl-PL.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_RO_RO
|
||||
#include "lang/ro-RO.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_RU_RU
|
||||
#include "lang/ru-RU.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_SQ_AL
|
||||
#include "lang/sq-AL.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_TR_TR
|
||||
#include "lang/tr-TR.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_ZH_CN
|
||||
#include "lang/zh-CN.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_ZH_TW
|
||||
#include "lang/zh-TW.rc"
|
||||
#endif
|
13
base/applications/cmdutils/hostname/lang/cs-CZ.rc
Normal file
13
base/applications/cmdutils/hostname/lang/cs-CZ.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* FILE: base/applications/cmdutils/hostname/lang/cs-CZ.rc
|
||||
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
|
||||
* UPDATED: 2013-05-01
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Vypíše současný název hostitele.\n\nhostname"
|
||||
IDS_NOSET "hostname -s není podporováno."
|
||||
IDS_ERROR "Win32 chyba"
|
||||
END
|
8
base/applications/cmdutils/hostname/lang/de-DE.rc
Normal file
8
base/applications/cmdutils/hostname/lang/de-DE.rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Zeigt den Computernamen an.\n\nhostname"
|
||||
IDS_NOSET "Der Befehl hostname -s wird nicht unterstützt."
|
||||
IDS_ERROR "Win32-Fehler"
|
||||
END
|
8
base/applications/cmdutils/hostname/lang/en-US.rc
Normal file
8
base/applications/cmdutils/hostname/lang/en-US.rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Print the current host's name.\n\nhostname"
|
||||
IDS_NOSET "hostname -s is not supported."
|
||||
IDS_ERROR "Win32 error"
|
||||
END
|
8
base/applications/cmdutils/hostname/lang/fr-FR.rc
Normal file
8
base/applications/cmdutils/hostname/lang/fr-FR.rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Affiche le nom de l'hôte actuel.\n\nhostname"
|
||||
IDS_NOSET "hostname -s n'est pas pris en charge."
|
||||
IDS_ERROR "Erreur Win32"
|
||||
END
|
8
base/applications/cmdutils/hostname/lang/it-IT.rc
Normal file
8
base/applications/cmdutils/hostname/lang/it-IT.rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Stampa il nome dell'host attuale.\n\nhostname"
|
||||
IDS_NOSET "hostname -s non è supportato."
|
||||
IDS_ERROR "errore Win32"
|
||||
END
|
8
base/applications/cmdutils/hostname/lang/pl-PL.rc
Normal file
8
base/applications/cmdutils/hostname/lang/pl-PL.rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Wyświetla obecną nazwę komputera.\n\nhostname"
|
||||
IDS_NOSET "Opcja hostname -s nie jest wspierana."
|
||||
IDS_ERROR "Błąd Win32"
|
||||
END
|
9
base/applications/cmdutils/hostname/lang/ro-RO.rc
Normal file
9
base/applications/cmdutils/hostname/lang/ro-RO.rc
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* Ștefan Fulea (stefan dot fulea at mail dot md) */
|
||||
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Tipărește numele gazdei curente.\n\nhostname"
|
||||
IDS_NOSET "hostname -s nu este acceptat."
|
||||
IDS_ERROR "Eroare Win32"
|
||||
END
|
8
base/applications/cmdutils/hostname/lang/ru-RU.rc
Normal file
8
base/applications/cmdutils/hostname/lang/ru-RU.rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Печать имени текущего узла.\n\nhostname"
|
||||
IDS_NOSET "hostname -s не поддерживается."
|
||||
IDS_ERROR "Ошибка Win32"
|
||||
END
|
12
base/applications/cmdutils/hostname/lang/sq-AL.rc
Normal file
12
base/applications/cmdutils/hostname/lang/sq-AL.rc
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* TRANSLATOR : Ardit Dani (Ard1t) (ardit.dani@gmail.com)
|
||||
* DATE OF TR: 29-11-2013
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_ALBANIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Print emrin e strehuesit aktual.\n\nhostname"
|
||||
IDS_NOSET "Strehuesi nuk është i mbështetur."
|
||||
IDS_ERROR "Win32 error"
|
||||
END
|
10
base/applications/cmdutils/hostname/lang/tr-TR.rc
Normal file
10
base/applications/cmdutils/hostname/lang/tr-TR.rc
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
|
||||
|
||||
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Şimdiki anabilgisayarın adını yazdır.\n\nhostname"
|
||||
IDS_NOSET "hostname -s desteklenmiyor."
|
||||
IDS_ERROR "Win32 yanlışlığı"
|
||||
END
|
10
base/applications/cmdutils/hostname/lang/zh-CN.rc
Normal file
10
base/applications/cmdutils/hostname/lang/zh-CN.rc
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* Simplified Chinese translation by Henry Tang Ih 2015 (henrytang2@hotmail.com) */
|
||||
|
||||
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "打印当前主机的名称。\n\nhostname"
|
||||
IDS_NOSET "hostname -s 不受支持。"
|
||||
IDS_ERROR "Win32 错误"
|
||||
END
|
10
base/applications/cmdutils/hostname/lang/zh-TW.rc
Normal file
10
base/applications/cmdutils/hostname/lang/zh-TW.rc
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
|
||||
|
||||
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "列印當前主機的名稱。\n\nhostname"
|
||||
IDS_NOSET "hostname -s 不受支援。"
|
||||
IDS_ERROR "Win32 錯誤"
|
||||
END
|
5
base/applications/cmdutils/hostname/resource.h
Normal file
5
base/applications/cmdutils/hostname/resource.h
Normal file
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#define IDS_USAGE 0
|
||||
#define IDS_NOSET 1
|
||||
#define IDS_ERROR 2
|
Loading…
Add table
Add a link
Reference in a new issue