Sync with trunk head

svn path=/branches/header-work/; revision=46021
This commit is contained in:
Amine Khaldi 2010-03-09 00:19:55 +00:00
commit a00acb2a1b
1006 changed files with 161728 additions and 16722 deletions

View file

@ -22,6 +22,9 @@
<directory name="dxdiag">
<xi:include href="dxdiag/dxdiag.rbuild" />
</directory>
<directory name="extrac32">
<xi:include href="extrac32/extrac32.rbuild" />
</directory>
<directory name="fontview">
<xi:include href="fontview/fontview.rbuild" />
</directory>

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef __CHARMAP_PRECOMP_H
#define __CHARMAP_PRECOMP_H
#include <stdio.h>
#include <stdlib.h>
@ -52,3 +53,5 @@ VOID ShowAboutDlg(HWND hWndParent);
BOOL RegisterMapClasses(HINSTANCE hInstance);
VOID UnregisterMapClasses(HINSTANCE hInstance);
#endif /* __CHARMAP_PRECOMP_H */

View file

@ -35,6 +35,6 @@ STRINGTABLE
STRING_SUCCESS, "Der Vorgang wurde erfolgreich abgeschlossen\n"
STRING_INVALID_KEY, "Fehler: Ungültiger Schlüssel\n"
STRING_INVALID_CMDLINE, "Fehler: Ungültige Befehlszeilenargumente\n"
STRING_NO_REMOTE, "Fehler: Konnte Schlüssel nicht zum entfernten Rechner hinzufügen\n"
STRING_NO_REMOTE, "Fehler: Konnte Schlüssel nicht zum remote Rechner hinzufügen\n"
STRING_CANNOT_FIND, "Fehler: Der angegebene Schlüssel oder Wert konnte nicht gefunden werden\n"
}

View file

@ -0,0 +1,40 @@
/*
* REG.EXE - Wine-compatible reg program.
* Italian language support
*
* Copyright 2010 Luca Bennati
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "reg.h"
/*UTF-8*/
#pragma code_page(65001)
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE
{
STRING_USAGE, "La sintassi di questo comando è:\n\nREG [ ADD | DELETE | QUERY ]\nREG comando /?\n"
STRING_ADD_USAGE, "REG ADD nome_della_chiave [/v nome_del_valore | /ve] [/t tipo] [/s separatore] [/d dati] [/f]\n"
STRING_DELETE_USAGE, "REG DELETE nome_della_chiave [/v nome_del_valore | /ve | /va] [/f]\n"
STRING_QUERY_USAGE, "REG QUERY nome_della_chiave [/v nome_del_valore | /ve] [/s]\n"
STRING_SUCCESS, "Operazione completata con successo\n"
STRING_INVALID_KEY, "Errore: nome della chiave non valido\n"
STRING_INVALID_CMDLINE, "Errore: parametri della linea di comando non validi\n"
STRING_NO_REMOTE, "Errore: Impossibile aggiungere chiavi alla macchina remota\n"
STRING_CANNOT_FIND, "Errore: Il sistema non è riuscito a trovare la chiave di registro o il valore specificati\n"
}

View file

@ -0,0 +1,43 @@
/*
* REG.EXE - Wine-compatible reg program.
*
* Copyright 2008 Andrew Riedi
*
* Ukrainian language support
*
* Copyright 2010 Igor Paliychuk
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "reg.h"
/* UTF-8 */
#pragma code_page(65001)
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_USAGE, "Синтаксис цієї команди наступний:\n\nREG [ ADD | DELETE | QUERY ]\nREG command /?\n"
STRING_ADD_USAGE, "REG ADD key_name [/v value_name | /ve] [/t type] [/s separator] [/d data] [/f]\n"
STRING_DELETE_USAGE, "REG DELETE key_name [/v value_name | /ve | /va] [/f]\n"
STRING_QUERY_USAGE, "REG QUERY key_name [/v value_name | /ve] [/s]\n"
STRING_SUCCESS, "Операція успішно завершена\n"
STRING_INVALID_KEY, "Помилка: неправильне ім'я ключа\n"
STRING_INVALID_CMDLINE, "Помилка: неправильні параметри командного рядка\n"
STRING_NO_REMOTE, "Помилка: неможливо додати ключі на віддаленій машині\n"
STRING_CANNOT_FIND, "Помилка: не вдалось знайти вказаний ключ реєстру чи значення\n"
}

View file

@ -124,6 +124,21 @@ static LPBYTE get_regdata(LPWSTR data, DWORD reg_type, WCHAR separator, DWORD *r
lstrcpyW((LPWSTR)out_data,data);
break;
}
case REG_DWORD:
{
LPWSTR rest;
DWORD val;
val = strtolW(data, &rest, 0);
if (rest == data) {
static const WCHAR nonnumber[] = {'E','r','r','o','r',':',' ','/','d',' ','r','e','q','u','i','r','e','s',' ','n','u','m','b','e','r','.','\n',0};
reg_printfW(nonnumber);
break;
}
*reg_count = sizeof(DWORD);
out_data = HeapAlloc(GetProcessHeap(),0,*reg_count);
((LPDWORD)out_data)[0] = val;
break;
}
default:
{
static const WCHAR unhandled[] = {'U','n','h','a','n','d','l','e','d',' ','T','y','p','e',' ','0','x','%','x',' ',' ','d','a','t','a',' ','%','s','\n',0};

View file

@ -1,13 +1,17 @@
#include "Da.rc"
#include "De.rc"
#include "En.rc"
#include "Fr.rc"
#include "Ja.rc"
//#include "Ko.rc"
#include "Lt.rc"
#include "Ko.rc"
#include "Nl.rc"
#include "Pl.rc"
/* UTF-8 */
#include "De.rc"
#include "Fr.rc"
#include "It.rc"
#include "Ja.rc"
#include "Lt.rc"
#include "No.rc"
//#include "Pl.rc"
#include "Pt.rc"
#include "Ru.rc"
#include "Si.rc"
#include "Uk.rc"

View file

@ -80,4 +80,3 @@ Mit:\n\
\t\tQuelldateien kopiert, die neuer sind als die Zieldatei\n\n"
}
#pragma code_page(default)

View file

@ -81,4 +81,3 @@ où :\n\
\t\tque le fichier source\n\n"
}
#pragma code_page(default)

View file

@ -81,4 +81,3 @@ Dove:\n\
\t\tdella sorgente\n\n"
}
#pragma code_page(default)

View file

@ -81,4 +81,3 @@ XCOPY 送り元 [送り先] [/I] [/S] [/Q] [/F] [/L] [/W] [/T] [/N] [/U]\n\
\t\tコピー先がコピー元より古いファイルだけコピーします。\n\n"
}
#pragma code_page(default)

View file

@ -81,4 +81,3 @@ Kur:\n\
\t\tsenesnis už šaltinio failą\n\n"
}
#pragma code_page(default)

View file

@ -79,4 +79,3 @@ Parameters:\n\
\t\tdatum. Als geen detum wordt gegeven, copiëer alleen als bron nieuwer is.\n\n"
}
#pragma code_page(default)

View file

@ -84,4 +84,3 @@ XCOPY source [dest] [/I] [/S] [/Q] [/F] [/L] [/W] [/T] [/N] [/U]\n\
после указанной даты. Если дата не указана, копирует только\n\
те файлы, которые новее в исходной папке.\n"
}
#pragma code_page(default)

View file

@ -80,4 +80,3 @@ Where:\n\
\t\tod izvora\n\n"
}
#pragma code_page(default)

View file

@ -82,4 +82,3 @@ Where:\n\
\t\tthan source\n\n"
}
#pragma code_page(default)

View file

@ -27,17 +27,19 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include <reactos/version.rc>
#include "Da.rc"
#include "De.rc"
#include "En.rc"
#include "Fr.rc"
#include "It.rc"
#include "Ja.rc"
#include "Ko.rc"
#include "Lt.rc"
#include "Nl.rc"
#include "No.rc"
#include "Pl.rc"
#include "Pt.rc"
/* UTF-8 */
#include "De.rc"
#include "Fr.rc"
#include "It.rc"
#include "Ja.rc"
#include "Lt.rc"
#include "Nl.rc"
#include "Ru.rc"
#include "Si.rc"
#include "Uk.rc"

View file

@ -0,0 +1,179 @@
/*
* Extract - Wine-compatible program for extract *.cab files.
*
* Copyright 2007 Etersoft (Lyutin Anatoly)
* Copyright 2009 Ilya Shpigor
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <windows.h>
#include <shellapi.h>
#include <setupapi.h>
#include <shlwapi.h>
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(extrac32);
static BOOL force_mode;
static UINT WINAPI ExtCabCallback(PVOID Context, UINT Notification, UINT_PTR Param1, UINT_PTR Param2)
{
FILE_IN_CABINET_INFO_W *pInfo;
FILEPATHS_W *pFilePaths;
switch(Notification)
{
case SPFILENOTIFY_FILEINCABINET:
pInfo = (FILE_IN_CABINET_INFO_W*)Param1;
lstrcpyW(pInfo->FullTargetName, (LPCWSTR)Context);
lstrcatW(pInfo->FullTargetName, pInfo->NameInCabinet);
return FILEOP_DOIT;
case SPFILENOTIFY_FILEEXTRACTED:
pFilePaths = (FILEPATHS_W*)Param1;
WINE_TRACE("Extracted %s\n", wine_dbgstr_w(pFilePaths->Target));
return NO_ERROR;
}
return NO_ERROR;
}
static void extract(LPCWSTR cabfile, LPWSTR destdir)
{
if (!SetupIterateCabinetW(cabfile, 0, ExtCabCallback, destdir))
WINE_ERR("Could not extract cab file %s\n", wine_dbgstr_w(cabfile));
}
static void copy_file(LPCWSTR source, LPCWSTR destination)
{
WCHAR destfile[MAX_PATH];
/* append source filename if destination is a directory */
if (PathIsDirectoryW(destination))
{
PathCombineW(destfile, destination, PathFindFileNameW(source));
destination = destfile;
}
if (PathFileExistsW(destination) && !force_mode)
{
static const WCHAR overwriteMsg[] = {'O','v','e','r','w','r','i','t','e',' ','"','%','s','"','?',0};
static const WCHAR titleMsg[] = {'E','x','t','r','a','c','t',0};
WCHAR msg[MAX_PATH+100];
snprintfW(msg, sizeof(msg)/sizeof(msg[0]), overwriteMsg, destination);
if (MessageBoxW(NULL, msg, titleMsg, MB_YESNO | MB_ICONWARNING) != IDYES)
return;
}
WINE_TRACE("copying %s to %s\n", wine_dbgstr_w(source), wine_dbgstr_w(destination));
CopyFileW(source, destination, FALSE);
}
int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int show)
{
LPWSTR *argv;
int argc;
int i;
WCHAR check, cmd = 0;
WCHAR path[MAX_PATH];
WCHAR backslash[] = {'\\',0};
LPCWSTR cabfile = NULL;
path[0] = 0;
argv = CommandLineToArgvW(cmdline, &argc);
if(!argv)
{
WINE_ERR("Bad command line arguments\n");
return 0;
}
/* Parse arguments */
for(i = 0; i < argc; i++)
{
/* Get cabfile */
if (argv[i][0] != '/')
{
if (!cabfile)
{
cabfile = argv[i];
continue;
} else
break;
}
/* Get parameters for commands */
check = toupperW( argv[i][1] );
switch(check)
{
case 'A':
WINE_FIXME("/A not implemented\n");
break;
case 'Y':
force_mode = TRUE;
break;
case 'L':
if ((i + 1) >= argc) return 0;
if (!GetFullPathNameW(argv[++i], MAX_PATH, path, NULL))
return 0;
break;
case 'C':
if (cmd) return 0;
cmd = check;
break;
case 'E':
case 'D':
if (cmd) return 0;
cmd = check;
break;
default:
return 0;
}
}
if (!cabfile)
return 0;
if (cmd == 'C')
{
if ((i + 1) != argc) return 0;
if (!GetFullPathNameW(argv[i], MAX_PATH, path, NULL))
return 0;
}
if (!path[0])
GetCurrentDirectoryW(MAX_PATH, path);
lstrcatW(path, backslash);
/* Execute the specified command */
switch(cmd)
{
case 'C':
/* Copy file */
copy_file(cabfile, path);
break;
case 'E':
/* Extract CAB archive */
extract(cabfile, path);
break;
case 0:
case 'D':
/* Display CAB archive */
WINE_FIXME("/D not implemented\n");
break;
}
return 0;
}

View file

@ -0,0 +1,9 @@
<module name="extrac32" type="win32gui" installbase="system32" installname="extrac32.exe" unicode="yes">
<include base="extrac32">.</include>
<library>wine</library>
<library>shell32</library>
<library>setupapi</library>
<library>shlwapi</library>
<library>user32</library>
<file>extrac32.c</file>
</module>

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef __DEVMGMT_PRECOMP_H
#define __DEVMGMT_PRECOMP_H
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -92,3 +93,5 @@ HIMAGELIST InitImageList(UINT NumButtons,
VOID GetError(VOID);
VOID DisplayString(LPTSTR);
#endif /* __DEVMGMT_PRECOMP_H */

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef __SERVMAN_PRECOMP_H
#define __SERVMAN_PRECOMP_H
//#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -184,3 +185,5 @@ HIMAGELIST InitImageList(UINT StartResource,
UINT Width,
UINT Height,
ULONG type);
#endif /* __SERVMAN_PRECOMP_H */

View file

@ -49,7 +49,7 @@ BEGIN
MENUITEM SEPARATOR
POPUP "Powiększenie"
BEGIN
POPUP "User defined"
POPUP "Zdefiniowane przez użytkownika"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
@ -60,8 +60,8 @@ BEGIN
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM SEPARATOR
MENUITEM "Show grid", IDM_VIEWSHOWGRID
MENUITEM "Show miniature", IDM_VIEWSHOWMINIATURE
MENUITEM "Pokaż siatkę", IDM_VIEWSHOWGRID
MENUITEM "Pokaż miniaturę", IDM_VIEWSHOWMINIATURE
END
MENUITEM "Pełny ekran\tCtrl+F", IDM_VIEWFULLSCREEN
END
@ -181,7 +181,7 @@ BEGIN
IDS_INFOTEXT, "Paint dla ReactOS jest dostępny na licencji GNU Lesser General Public License (LGPL) wersja 3 (www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Czy chcesz zapisać zmiany do %s?"
IDS_DEFAULTFILENAME, "Nienazwany.bmp"
IDS_MINIATURETITLE, "Miniature"
IDS_MINIATURETITLE, "Miniatura"
IDS_TOOLTIP1, "Zaznaczenie dowolne"
IDS_TOOLTIP2, "Zaznaczenie"
IDS_TOOLTIP3, "Gumka"
@ -190,16 +190,16 @@ BEGIN
IDS_TOOLTIP6, "Przybliżenie"
IDS_TOOLTIP7, "Ołówek"
IDS_TOOLTIP8, "Pędzel"
IDS_TOOLTIP9, "Spray"
IDS_TOOLTIP9, "Aerograf"
IDS_TOOLTIP10, "Tekst"
IDS_TOOLTIP11, "Linia"
IDS_TOOLTIP12, "Krzywa Beziera"
IDS_TOOLTIP13, "Prostokšt"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP14, "Wielokšt"
IDS_TOOLTIP15, "Elipsa"
IDS_TOOLTIP16, "Zaokršglony Prostokšt"
IDS_OPENFILTER, "Pliki Bitmapy (*.bmp;*.dib)\1*.bmp;*.dib\1Wszystkie pliki (*.*)\1*.*\1"
IDS_SAVEFILTER, "Bitmapa 24 bit (*.bmp;*.dib)\1*.bmp;*.dib\1"
IDS_FILESIZE, "%d bytes"
IDS_PRINTRES, "%d x %d pixels per meter"
IDS_FILESIZE, "%d bajtów"
IDS_PRINTRES, "%d x %d pikseli na metr"
END

View file

@ -16,7 +16,7 @@ BEGIN
MENUITEM "&Odinstaluj",ID_UNINSTALL
MENUITEM "&Modyfikuj", ID_MODIFY
MENUITEM SEPARATOR
MENUITEM "&Remove from Registry", ID_REGREMOVE
MENUITEM "&Usuń z rejestru", ID_REGREMOVE
MENUITEM SEPARATOR
MENUITEM "O&dœwie¿", ID_REFRESH
END
@ -44,7 +44,7 @@ BEGIN
MENUITEM "&odinstaluj", ID_UNINSTALL
MENUITEM "&Modyfikuj", ID_MODIFY
MENUITEM SEPARATOR
MENUITEM "&Remove from Registry", ID_REGREMOVE
MENUITEM "&Usuń z rejestru", ID_REGREMOVE
MENUITEM SEPARATOR
MENUITEM "&Odœwie¿", ID_REFRESH
END
@ -52,37 +52,37 @@ END
IDD_SETTINGS_DIALOG DIALOGEX DISCARDABLE 0, 0, 250, 144
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Settings"
CAPTION "Ustawienia"
FONT 8, "MS Shell Dlg"
BEGIN
GROUPBOX "General", -1, 4, 2, 240, 61
AUTOCHECKBOX "&Save window position", IDC_SAVE_WINDOW_POS, 15, 12, 219, 12
AUTOCHECKBOX "&Update the list of accessible programs at start", IDC_UPDATE_AVLIST, 15, 29, 219, 12
AUTOCHECKBOX "&Log of installation and removal of programs", IDC_LOG_ENABLED, 15, 46, 219, 12
GROUPBOX "Ogólne", -1, 4, 2, 240, 61
AUTOCHECKBOX "&Zapisz pozycję okna", IDC_SAVE_WINDOW_POS, 15, 12, 219, 12
AUTOCHECKBOX "&Aktualizuj listę dostępnych programów przy każdym uruchomieniu", IDC_UPDATE_AVLIST, 15, 29, 219, 12
AUTOCHECKBOX "Zap&isuj dziennik instalacji i usuwania programów", IDC_LOG_ENABLED, 15, 46, 219, 12
GROUPBOX "Downloading", -1, 4, 65, 240, 51
LTEXT "Folder for downloadings:", -1, 16, 75, 100, 9
GROUPBOX "Pobieranie", -1, 4, 65, 240, 51
LTEXT "Katalog dla pobranych plików:", -1, 16, 75, 100, 9
EDITTEXT IDC_DOWNLOAD_DIR_EDIT, 15, 86, 166, 12, WS_CHILD | WS_VISIBLE | WS_GROUP
PUSHBUTTON "&Choose", IDC_CHOOSE, 187, 85, 50, 14
AUTOCHECKBOX "&Delete installers of programs after installation", IDC_DEL_AFTER_INSTALL, 16, 100, 218, 12
PUSHBUTTON "&Wybierz", IDC_CHOOSE, 187, 85, 50, 14
AUTOCHECKBOX "&Usuń instalatory programów po ich zainstalowaniu", IDC_DEL_AFTER_INSTALL, 16, 100, 218, 12
PUSHBUTTON "Default", IDC_DEFAULT_SETTINGS, 8, 124, 60, 14
PUSHBUTTON "Domyślne", IDC_DEFAULT_SETTINGS, 8, 124, 60, 14
PUSHBUTTON "OK", IDOK, 116, 124, 60, 14
PUSHBUTTON "Cancel", IDCANCEL, 181, 124, 60, 14
PUSHBUTTON "Anuluj", IDCANCEL, 181, 124, 60, 14
END
IDD_INSTALL_DIALOG DIALOGEX DISCARDABLE 0, 0, 216, 97
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Program installation"
CAPTION "Instalacja programu"
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "...", IDC_INSTALL_TEXT, 4, 5, 209, 35
AUTORADIOBUTTON "&Install from a disk (CD or DVD)", IDC_CD_INSTALL, 10, 46, 197, 11, WS_GROUP
AUTORADIOBUTTON "&Download and install", IDC_DOWNLOAD_INSTALL, 10, 59, 197, 11, NOT WS_TABSTOP
AUTORADIOBUTTON "&Zainstaluj z dysku (CD or DVD)", IDC_CD_INSTALL, 10, 46, 197, 11, WS_GROUP
AUTORADIOBUTTON "&Pobierz i zainstaluj", IDC_DOWNLOAD_INSTALL, 10, 59, 197, 11, NOT WS_TABSTOP
PUSHBUTTON "OK", IDOK, 86, 78, 60, 14
PUSHBUTTON "Cancel", IDCANCEL, 150, 78, 60, 14
PUSHBUTTON "Anuluj", IDCANCEL, 150, 78, 60, 14
END
IDD_DOWNLOAD_DIALOG DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 220, 76
@ -101,7 +101,7 @@ CAPTION "O programie"
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "ReactOS Applications Manager\nCopyright (C) 2009\nby Dmitry Chapyshev (dmitry@reactos.org)", IDC_STATIC, 48, 7, 130, 39
PUSHBUTTON "Close", IDOK, 133, 46, 50, 14
PUSHBUTTON "Zamknij", IDOK, 133, 46, 50, 14
ICON IDI_MAIN, IDC_STATIC, 10, 10, 7, 30
END
@ -139,7 +139,7 @@ BEGIN
IDS_INFO_INSTLOCATION "\nScie¿ka instalacji: "
IDS_INFO_INSTALLSRC "\n<>ród³o instalacji: "
IDS_INFO_UNINSTALLSTR "\nKomenda deinstalacji: "
IDS_INFO_MODIFYPATH "\nModify Path: "
IDS_INFO_MODIFYPATH "\nModyfikacja ścieżki instalacji: "
IDS_INFO_INSTALLDATE "\nData instalacji: "
END
@ -186,10 +186,10 @@ BEGIN
IDS_AVAILABLEFORINST "Dostêpne"
IDS_UPDATES "Uaktualnienia"
IDS_APPLICATIONS "Aplikacje"
IDS_CHOOSE_FOLDER_TEXT "Choose a folder which will be used for downloading of programs:"
IDS_CHOOSE_FOLDER_ERROR "You have specified a nonexistent folder!"
IDS_USER_NOT_ADMIN "You should be administrator for start ""ReactOS Applications Manager""!"
IDS_APP_REG_REMOVE "Are you sure you want to delete the data on the installed program from the registry?"
IDS_INFORMATION "Information"
IDS_UNABLE_TO_REMOVE "Unable to remove data on the program from the registry!"
IDS_CHOOSE_FOLDER_TEXT "Wybierz katalog w którym będa zapisywane pobrane programy:"
IDS_CHOOSE_FOLDER_ERROR "Wybrałeś nieistniejący katalog!"
IDS_USER_NOT_ADMIN "Musisz mieć uprawnienia administratora aby uruchomić ""ReactOS Applications Manager""!"
IDS_APP_REG_REMOVE "Czy na pewno chcesz usunąć wpis tego programu z rejestru?"
IDS_INFORMATION "Informacja"
IDS_UNABLE_TO_REMOVE "Nie można było usunąć wpisu z rejestru!"
END

View file

@ -11,7 +11,7 @@
#include "resource.h"
#define APPLICATION_DATEBASE_URL L"http://opendn.org/rappmgr.cab"
#define APPLICATION_DATEBASE_URL L"http://svn.reactos.org/packages/rappmgr.cab"
#define SPLIT_WIDTH 4
#define MAX_STR_LEN 256

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef __PRECOMP_H
#define __PRECOMP_H
#ifndef UNICODE
#error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled!
@ -35,3 +36,5 @@
#include "priority.h"
#include "run.h"
#include "trayicon.h"
#endif /* __PRECOMP_H */

View file

@ -128,4 +128,3 @@ END
MENUITEM "Systemfarben verwenden", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -131,4 +131,3 @@ BEGIN
MENUITEM "Utiliser les couleurs système", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -89,4 +89,3 @@ STID_FILE_NOT_FOUND_s "Non è stato possibile trovare '%s'. Vuoi cercare questo
STID_NO_RICHEDIT "Non è stato possibile trovare un'implementazione richedit... Annullando"
STID_PSH_INDEX, "Argomenti di aiuto: "
}
#pragma code_page(default)

View file

@ -128,4 +128,3 @@ BEGIN
MENUITEM "システム カラーを使う", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -129,4 +129,3 @@ BEGIN
MENUITEM "Naudoti sistemos spalvas", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -127,4 +127,3 @@ BEGIN
MENUITEM "Gebruik systeem kleuren", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -204,4 +204,3 @@ BEGIN
MENUITEM "Usar cores do sistema", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -92,4 +92,3 @@ STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yoursel
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
STID_PSH_INDEX, "Help topics: "
}
#pragma code_page(default)

View file

@ -130,4 +130,3 @@ BEGIN
MENUITEM "Utilizează culorile sistemului", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -121,4 +121,3 @@ BEGIN
MENUITEM "Использовать системные цвета", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -126,4 +126,3 @@ BEGIN
MENUITEM "Uporabi sistemske barve", MNID_CTXT_SYSTEM_COLORS
END
END
#pragma code_page(default)

View file

@ -160,4 +160,3 @@ STID_FILE_NOT_FOUND_s "不能開啟檔案 '%s'. 你想要自己找這個檔案
STID_NO_RICHEDIT "找不到 richedit... 終止"
STID_PSH_INDEX, "幫助內容: "
}
#pragma code_page(default)

View file

@ -27,25 +27,27 @@ IDI_WINHELP ICON DISCARDABLE winhelp.ico
#include "Bg.rc"
#include "Cs.rc"
#include "Da.rc"
#include "De.rc"
#include "En.rc"
#include "Es.rc"
#include "Fi.rc"
#include "Fr.rc"
#include "Hu.rc"
#include "It.rc"
#include "Ja.rc"
#include "Ko.rc"
#include "Lt.rc"
#include "Nl.rc"
#include "No.rc"
#include "Pl.rc"
#include "Sk.rc"
#include "Sv.rc"
#include "Tr.rc"
/* UTF-8 */
#include "De.rc"
#include "Fr.rc"
#include "It.rc"
#include "Ja.rc"
#include "Lt.rc"
#include "Nl.rc"
#include "Pt.rc"
#include "Rm.rc"
#include "Ro.rc"
#include "Ru.rc"
#include "Si.rc"
#include "Sk.rc"
#include "Sv.rc"
#include "Tr.rc"
#include "Zh.rc"

View file

@ -106,6 +106,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Sort", ID_COLOR_BLACK
MENUITEM "Mørkerød", ID_COLOR_MAROON
MENUITEM "Grøn", ID_COLOR_GREEN
MENUITEM "Oliven" ID_COLOR_OLIVE
MENUITEM "Navy" ID_COLOR_NAVY
MENUITEM "Lilla" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Grå" ID_COLOR_GRAY
MENUITEM "Sølv" ID_COLOR_SILVER
MENUITEM "Rød" ID_COLOR_RED
MENUITEM "Lime" ID_COLOR_LIME
MENUITEM "Gul" ID_COLOR_YELLOW
MENUITEM "Blå" ID_COLOR_BLUE
MENUITEM "Violet" ID_COLOR_FUCHSIA
MENUITEM "Cyan" ID_COLOR_AQUA
MENUITEM "Hvid" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Dato og tid"
@ -221,6 +245,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Luk"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE

View file

@ -108,6 +108,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Schwarz" ID_COLOR_BLACK
MENUITEM "Kastanienbraun" ID_COLOR_MAROON
MENUITEM "Grün" ID_COLOR_GREEN
MENUITEM "Olivgrün" ID_COLOR_OLIVE
MENUITEM "Dunkelblau" ID_COLOR_NAVY
MENUITEM "Lila" ID_COLOR_PURPLE
MENUITEM "Blaugrün" ID_COLOR_TEAL
MENUITEM "Grau" ID_COLOR_GRAY
MENUITEM "Silber" ID_COLOR_SILVER
MENUITEM "Rot" ID_COLOR_RED
MENUITEM "Hellgrün" ID_COLOR_LIME
MENUITEM "Gelb" ID_COLOR_YELLOW
MENUITEM "Blau" ID_COLOR_BLUE
MENUITEM "Pink" ID_COLOR_FUCHSIA
MENUITEM "Aquamarin" ID_COLOR_AQUA
MENUITEM "Weiß" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Datum und Uhrzeit"
@ -218,9 +242,13 @@ BEGIN
STRING_PREVIEW_PRINT, "&Drucken"
STRING_PREVIEW_NEXTPAGE, "&Nächste"
STRING_PREVIEW_PREVPAGE, "&Vorherige"
STRING_PREVIEW_TWOPAGES, "Zwei Seiten"
STRING_PREVIEW_ONEPAGE, "Eine Seite"
STRING_PREVIEW_TWOPAGES, "&Zwei Seiten"
STRING_PREVIEW_ONEPAGE, "&Eine Seite"
STRING_PREVIEW_ZOOMIN, "Ver&größern"
STRING_PREVIEW_ZOOMOUT, "Ver&kleinern"
STRING_PREVIEW_CLOSE, "&Schließen"
STRING_PREVIEW_PAGE, "Seite"
STRING_PREVIEW_PAGES, "Seiten"
END
STRINGTABLE DISCARDABLE
@ -246,4 +274,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Drucken ist nicht implementiert"
STRING_MAX_TAB_STOPS, "Es können nur maximal 32 Tabstopps definiert werden."
END
#pragma code_page(default)

View file

@ -106,6 +106,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Black", ID_COLOR_BLACK
MENUITEM "Maroon", ID_COLOR_MAROON
MENUITEM "Green", ID_COLOR_GREEN
MENUITEM "Olive" ID_COLOR_OLIVE
MENUITEM "Navy" ID_COLOR_NAVY
MENUITEM "Purple" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Gray" ID_COLOR_GRAY
MENUITEM "Silver" ID_COLOR_SILVER
MENUITEM "Red" ID_COLOR_RED
MENUITEM "Lime" ID_COLOR_LIME
MENUITEM "Yellow" ID_COLOR_YELLOW
MENUITEM "Blue" ID_COLOR_BLUE
MENUITEM "Fuchsia" ID_COLOR_FUCHSIA
MENUITEM "Aqua" ID_COLOR_AQUA
MENUITEM "White" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Date and time"
@ -213,6 +237,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
END

View file

@ -109,6 +109,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Noir" ID_COLOR_BLACK
MENUITEM "Marron" ID_COLOR_MAROON
MENUITEM "Vert" ID_COLOR_GREEN
MENUITEM "Olive" ID_COLOR_OLIVE
MENUITEM "Bleu marine" ID_COLOR_NAVY
MENUITEM "Pourpre" ID_COLOR_PURPLE
MENUITEM "Sarcelle" ID_COLOR_TEAL
MENUITEM "Gris" ID_COLOR_GRAY
MENUITEM "Argent" ID_COLOR_SILVER
MENUITEM "Rouge" ID_COLOR_RED
MENUITEM "Citron vert" ID_COLOR_LIME
MENUITEM "Jaune" ID_COLOR_YELLOW
MENUITEM "Bleu" ID_COLOR_BLUE
MENUITEM "Fuchsia" ID_COLOR_FUCHSIA
MENUITEM "Eau" ID_COLOR_AQUA
MENUITEM "Blanc" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Date et heure"
@ -224,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom avant"
STRING_PREVIEW_ZOOMOUT, "Zoom arrière"
STRING_PREVIEW_CLOSE, "Fermer"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -249,4 +275,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "L'impression n'est pas implémentée"
STRING_MAX_TAB_STOPS, "Impossible d'ajouter plus de 32 taquets de tabulation."
END
#pragma code_page(default)

View file

@ -106,6 +106,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Black", ID_COLOR_BLACK
MENUITEM "Maroon", ID_COLOR_MAROON
MENUITEM "Green", ID_COLOR_GREEN
MENUITEM "Olive" ID_COLOR_OLIVE
MENUITEM "Navy" ID_COLOR_NAVY
MENUITEM "Purple" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Gray" ID_COLOR_GRAY
MENUITEM "Silver" ID_COLOR_SILVER
MENUITEM "Red" ID_COLOR_RED
MENUITEM "Lime" ID_COLOR_LIME
MENUITEM "Yellow" ID_COLOR_YELLOW
MENUITEM "Blue" ID_COLOR_BLUE
MENUITEM "Fuchsia" ID_COLOR_FUCHSIA
MENUITEM "Aqua" ID_COLOR_AQUA
MENUITEM "White" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Date and time"
@ -221,6 +245,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE

View file

@ -110,6 +110,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Nero" ID_COLOR_BLACK
MENUITEM "Marrone rossiccio" ID_COLOR_MAROON
MENUITEM "Verde" ID_COLOR_GREEN
MENUITEM "Verde oliva" ID_COLOR_OLIVE
MENUITEM "Blu oltremare" ID_COLOR_NAVY
MENUITEM "Propora" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Grigio" ID_COLOR_GRAY
MENUITEM "Argento" ID_COLOR_SILVER
MENUITEM "Rosso" ID_COLOR_RED
MENUITEM "Verde cedro" ID_COLOR_LIME
MENUITEM "Giallo" ID_COLOR_YELLOW
MENUITEM "Blu" ID_COLOR_BLUE
MENUITEM "Fucsia" ID_COLOR_FUCHSIA
MENUITEM "Aqua" ID_COLOR_AQUA
MENUITEM "Bianco" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Data e ora"
@ -217,6 +241,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Ingrandisci"
STRING_PREVIEW_ZOOMOUT, "Rimpicciolisci"
STRING_PREVIEW_CLOSE, "Chiudi"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
END
@ -238,4 +264,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Stampa non implementata"
STRING_MAX_TAB_STOPS, "Non si possono aggiungere più di 32 punti di fermata delle tabulazioni."
END
#pragma code_page(default)

View file

@ -109,6 +109,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "黒" ID_COLOR_BLACK
MENUITEM "茶色" ID_COLOR_MAROON
MENUITEM "緑" ID_COLOR_GREEN
MENUITEM "オリーブ" ID_COLOR_OLIVE
MENUITEM "紺" ID_COLOR_NAVY
MENUITEM "紫" ID_COLOR_PURPLE
MENUITEM "青緑" ID_COLOR_TEAL
MENUITEM "灰色" ID_COLOR_GRAY
MENUITEM "銀色" ID_COLOR_SILVER
MENUITEM "赤" ID_COLOR_RED
MENUITEM "黄緑" ID_COLOR_LIME
MENUITEM "黄" ID_COLOR_YELLOW
MENUITEM "青" ID_COLOR_BLUE
MENUITEM "赤紫" ID_COLOR_FUCHSIA
MENUITEM "水色" ID_COLOR_AQUA
MENUITEM "白" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "日付と時刻"
@ -224,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "閉じる"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -249,4 +275,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "プリントが実装されていません。"
STRING_MAX_TAB_STOPS, "32以上なタブを追加できません。"
END
#pragma code_page(default)

View file

@ -107,6 +107,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "검정" ID_COLOR_BLACK
MENUITEM "밤색" ID_COLOR_MAROON
MENUITEM "녹색" ID_COLOR_GREEN
MENUITEM "올리브색" ID_COLOR_OLIVE
MENUITEM "짙은 남색" ID_COLOR_NAVY
MENUITEM "심홍색" ID_COLOR_PURPLE
MENUITEM "검은 물오리색" ID_COLOR_TEAL
MENUITEM "회색" ID_COLOR_GRAY
MENUITEM "은색" ID_COLOR_SILVER
MENUITEM "빨강" ID_COLOR_RED
MENUITEM "라임색" ID_COLOR_LIME
MENUITEM "노랑" ID_COLOR_YELLOW
MENUITEM "파랑" ID_COLOR_BLUE
MENUITEM "자홍색" ID_COLOR_FUCHSIA
MENUITEM "물색" ID_COLOR_AQUA
MENUITEM "하양" ID_COLOR_WHITE
MENUITEM "자동" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "날짜와 시간"
@ -212,10 +236,12 @@ BEGIN
STRING_PREVIEW_PREVPAGE, "이전 페이지"
STRING_PREVIEW_TWOPAGES, "두 페이지"
STRING_PREVIEW_ONEPAGE, "한 페이지"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMIN, "확대"
STRING_PREVIEW_ZOOMOUT, "축소"
STRING_PREVIEW_CLOSE, "닫기"
STRING_UNITS_CM, "cm"
STRING_PREVIEW_PAGE, "페이지"
STRING_PREVIEW_PAGES, "페이지들"
STRING_UNITS_CM, "cm"
END
STRINGTABLE DISCARDABLE

View file

@ -109,6 +109,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Juoda" ID_COLOR_BLACK
MENUITEM "Kaštoninė" ID_COLOR_MAROON
MENUITEM "Žalia" ID_COLOR_GREEN
MENUITEM "Alyvinė" ID_COLOR_OLIVE
MENUITEM "Ultramarinas" ID_COLOR_NAVY
MENUITEM "Purpurinė" ID_COLOR_PURPLE
MENUITEM "Neutrali ciano" ID_COLOR_TEAL
MENUITEM "Pilka" ID_COLOR_GRAY
MENUITEM "Sidabrinė" ID_COLOR_SILVER
MENUITEM "Raudona" ID_COLOR_RED
MENUITEM "Gelsvai žalsva" ID_COLOR_LIME
MENUITEM "Geltona" ID_COLOR_YELLOW
MENUITEM "Mėlyna" ID_COLOR_BLUE
MENUITEM "Fuksija" ID_COLOR_FUCHSIA
MENUITEM "Žydra" ID_COLOR_AQUA
MENUITEM "Balta" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Data ir laikas"
@ -224,6 +248,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Didinti"
STRING_PREVIEW_ZOOMOUT, "Mažinti"
STRING_PREVIEW_CLOSE, "Užverti"
STRING_PREVIEW_PAGE, "Puslapis"
STRING_PREVIEW_PAGES, "Puslapiai"
END
STRINGTABLE DISCARDABLE
@ -249,4 +275,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Spausdinimas nerealizuotas"
STRING_MAX_TAB_STOPS, "Negalima pridėti daugiau negu 32-jų tabuliavimo pozicijų."
END
#pragma code_page(default)

View file

@ -107,6 +107,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Zwart" ID_COLOR_BLACK
MENUITEM "Kastanjebruin" ID_COLOR_MAROON
MENUITEM "Groen" ID_COLOR_GREEN
MENUITEM "Olijfgroen" ID_COLOR_OLIVE
MENUITEM "Marineblauw" ID_COLOR_NAVY
MENUITEM "Paars" ID_COLOR_PURPLE
MENUITEM "Groenblauw" ID_COLOR_TEAL
MENUITEM "Grijs" ID_COLOR_GRAY
MENUITEM "Zilver" ID_COLOR_SILVER
MENUITEM "Rood" ID_COLOR_RED
MENUITEM "Lichtgroen" ID_COLOR_LIME
MENUITEM "Geel" ID_COLOR_YELLOW
MENUITEM "Blauw" ID_COLOR_BLUE
MENUITEM "Fuchsiapaars" ID_COLOR_FUCHSIA
MENUITEM "Zeeblauw" ID_COLOR_AQUA
MENUITEM "Wit" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Datum en tijd"
@ -214,6 +238,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Sluiten"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE

View file

@ -108,6 +108,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Svart" ID_COLOR_BLACK
MENUITEM "Rødbrun" ID_COLOR_MAROON
MENUITEM "Grønn" ID_COLOR_GREEN
MENUITEM "Oliven" ID_COLOR_OLIVE
MENUITEM "Marineblå" ID_COLOR_NAVY
MENUITEM "Purpur" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Grå" ID_COLOR_GRAY
MENUITEM "Sølv" ID_COLOR_SILVER
MENUITEM "Rød" ID_COLOR_RED
MENUITEM "Lime-grønn" ID_COLOR_LIME
MENUITEM "Gul" ID_COLOR_YELLOW
MENUITEM "Blå" ID_COLOR_BLUE
MENUITEM "Fuchsia" ID_COLOR_FUCHSIA
MENUITEM "Aqua" ID_COLOR_AQUA
MENUITEM "Hvit" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Dato og klokkeslett"
@ -223,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Lukk"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -248,4 +274,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Utskriftfunksjonen er ikke laget ennå."
STRING_MAX_TAB_STOPS, "Kan ikke legge til mer enn 32 tabulatorstopp."
END
#pragma code_page(default)

View file

@ -107,6 +107,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Czarny" ID_COLOR_BLACK
MENUITEM "Kasztanowy" ID_COLOR_MAROON
MENUITEM "Zielony" ID_COLOR_GREEN
MENUITEM "Oliwkowy" ID_COLOR_OLIVE
MENUITEM "Granatowy" ID_COLOR_NAVY
MENUITEM "Purpurowy" ID_COLOR_PURPLE
MENUITEM "Zielonomodry" ID_COLOR_TEAL
MENUITEM "Szary" ID_COLOR_GRAY
MENUITEM "Srebrny" ID_COLOR_SILVER
MENUITEM "Czerwony" ID_COLOR_RED
MENUITEM "Limonowy" ID_COLOR_LIME
MENUITEM "¯ó³ty" ID_COLOR_YELLOW
MENUITEM "Niebieski" ID_COLOR_BLUE
MENUITEM "Fuksja" ID_COLOR_FUCHSIA
MENUITEM "Akwamaryna" ID_COLOR_AQUA
MENUITEM "Bia³y" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Data i godzina"
@ -222,6 +246,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Zamknij"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE

View file

@ -110,6 +110,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Preto" ID_COLOR_BLACK
MENUITEM "Castanho" ID_COLOR_MAROON
MENUITEM "Verde" ID_COLOR_GREEN
MENUITEM "Verde-oliva" ID_COLOR_OLIVE
MENUITEM "Azul-marinho" ID_COLOR_NAVY
MENUITEM "Roxo" ID_COLOR_PURPLE
MENUITEM "Azul-petróleo" ID_COLOR_TEAL
MENUITEM "Cinza" ID_COLOR_GRAY
MENUITEM "Prateado" ID_COLOR_SILVER
MENUITEM "Vermelho" ID_COLOR_RED
MENUITEM "Verde-limão" ID_COLOR_LIME
MENUITEM "Amarelo" ID_COLOR_YELLOW
MENUITEM "Azul" ID_COLOR_BLUE
MENUITEM "Fúcsia" ID_COLOR_FUCHSIA
MENUITEM "Azul-piscina" ID_COLOR_AQUA
MENUITEM "Branco" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Data e hora"
@ -225,6 +249,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Fechar"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -250,4 +276,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Impressão não implementada"
STRING_MAX_TAB_STOPS, "Não pode adicionar mais de 32 tabs."
END
#pragma code_page(default)

View file

@ -109,6 +109,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Чёрный" ID_COLOR_BLACK
MENUITEM "Тёмно-бордовый" ID_COLOR_MAROON
MENUITEM "Зелёный" ID_COLOR_GREEN
MENUITEM "Оливковый" ID_COLOR_OLIVE
MENUITEM "Тёмно-синий" ID_COLOR_NAVY
MENUITEM "Пурпурный" ID_COLOR_PURPLE
MENUITEM "Морской волны" ID_COLOR_TEAL
MENUITEM "Серый" ID_COLOR_GRAY
MENUITEM "Серебряный" ID_COLOR_SILVER
MENUITEM "Красный" ID_COLOR_RED
MENUITEM "Лимонный" ID_COLOR_LIME
MENUITEM "Жёлтый" ID_COLOR_YELLOW
MENUITEM "Синий" ID_COLOR_BLUE
MENUITEM "Ярко-розовый" ID_COLOR_FUCHSIA
MENUITEM "Голубой" ID_COLOR_AQUA
MENUITEM "Белый" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Дата и время"
@ -221,9 +245,11 @@ BEGIN
STRING_PREVIEW_PREVPAGE, "Предыдущая страница"
STRING_PREVIEW_TWOPAGES, "Две страницы"
STRING_PREVIEW_ONEPAGE, "Одна страница"
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_ZOOMIN, "Приблизить"
STRING_PREVIEW_ZOOMOUT, "Отдалить"
STRING_PREVIEW_CLOSE, "Закрыть"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -249,4 +275,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Печать не поддерживается"
STRING_MAX_TAB_STOPS, "Нельзя добавить более 32 позиций табуляции."
END
#pragma code_page(default)

View file

@ -108,6 +108,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Črna" ID_COLOR_BLACK
MENUITEM "Kostanjeva" ID_COLOR_MAROON
MENUITEM "Zelena" ID_COLOR_GREEN
MENUITEM "Olivna" ID_COLOR_OLIVE
MENUITEM "Mornariška" ID_COLOR_NAVY
MENUITEM "Vijolična" ID_COLOR_PURPLE
MENUITEM "Zelenomodra" ID_COLOR_TEAL
MENUITEM "Siva" ID_COLOR_GRAY
MENUITEM "Srebrna" ID_COLOR_SILVER
MENUITEM "Rdeča" ID_COLOR_RED
MENUITEM "Citronska" ID_COLOR_LIME
MENUITEM "Rumena" ID_COLOR_YELLOW
MENUITEM "Modra" ID_COLOR_BLUE
MENUITEM "Roza" ID_COLOR_FUCHSIA
MENUITEM "Akvamarin" ID_COLOR_AQUA
MENUITEM "Bela" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Datum in čas"
@ -223,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Zapri"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -249,4 +275,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Tiskanje (še) ni na voljo"
STRING_MAX_TAB_STOPS, "Ne morem vstaviti več kot 32 položajev tabulatorja."
END
#pragma code_page(default)

View file

@ -108,6 +108,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Svart" ID_COLOR_BLACK
MENUITEM "Rödbrun" ID_COLOR_MAROON
MENUITEM "Grön" ID_COLOR_GREEN
MENUITEM "Oliv" ID_COLOR_OLIVE
MENUITEM "Navy" ID_COLOR_NAVY
MENUITEM "Lila" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Grå" ID_COLOR_GRAY
MENUITEM "Silver" ID_COLOR_SILVER
MENUITEM "Röd" ID_COLOR_RED
MENUITEM "Lime" ID_COLOR_LIME
MENUITEM "Gul" ID_COLOR_YELLOW
MENUITEM "Blå" ID_COLOR_BLUE
MENUITEM "Fuchsia" ID_COLOR_FUCHSIA
MENUITEM "Aqua" ID_COLOR_AQUA
MENUITEM "Vit" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Datum och tid"
@ -223,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zooma in"
STRING_PREVIEW_ZOOMOUT, "Zooma ut"
STRING_PREVIEW_CLOSE, "Stäng"
STRING_PREVIEW_PAGE, "Sida"
STRING_PREVIEW_PAGES, "Sidor"
END
STRINGTABLE DISCARDABLE
@ -248,4 +274,3 @@ BEGIN
STRING_PRINTING_NOT_IMPLEMENTED, "Utskrift ej implementerat."
STRING_MAX_TAB_STOPS, "Kan ej lägga till mer än 32 tabbstopp."
END
#pragma code_page(default)

View file

@ -108,6 +108,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Siyah" ID_COLOR_BLACK
MENUITEM "Koyu Kýrmýzý" ID_COLOR_MAROON
MENUITEM "Yeþil" ID_COLOR_GREEN
MENUITEM "Koyu Sarý" ID_COLOR_OLIVE
MENUITEM "Koyu Mavi" ID_COLOR_NAVY
MENUITEM "Mor" ID_COLOR_PURPLE
MENUITEM "Deniz Mavisi" ID_COLOR_TEAL
MENUITEM "Gri" ID_COLOR_GRAY
MENUITEM "Gümüþ" ID_COLOR_SILVER
MENUITEM "Kýrmýzý" ID_COLOR_RED
MENUITEM "Parlak Yeþil" ID_COLOR_LIME
MENUITEM "Sarý" ID_COLOR_YELLOW
MENUITEM "Mavi" ID_COLOR_BLUE
MENUITEM "Pembe" ID_COLOR_FUCHSIA
MENUITEM "Turkuaz" ID_COLOR_AQUA
MENUITEM "Beyaz" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Date and time"
@ -223,6 +247,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "Close"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE

View file

@ -113,6 +113,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "×îðíèé" ID_COLOR_BLACK
MENUITEM "Áðóíàòíèé" ID_COLOR_MAROON
MENUITEM "Çåëåíèé" ID_COLOR_GREEN
MENUITEM "Îëèâêîâèé" ID_COLOR_OLIVE
MENUITEM "Ñèí³é" ID_COLOR_NAVY
MENUITEM "Ïóðïóðíèé" ID_COLOR_PURPLE
MENUITEM "Çåëåíî-ñèí³é" ID_COLOR_TEAL
MENUITEM "ѳðèé" ID_COLOR_GRAY
MENUITEM "Ñð³áíèé" ID_COLOR_SILVER
MENUITEM "×åðâîíèé" ID_COLOR_RED
MENUITEM "Ñàëàòîâèé" ID_COLOR_LIME
MENUITEM "Æîâòèé" ID_COLOR_YELLOW
MENUITEM "Ãîëóáèé" ID_COLOR_BLUE
MENUITEM "Ô³îëåòîâèé" ID_COLOR_FUCHSIA
MENUITEM "Àêâàìàðèí" ID_COLOR_AQUA
MENUITEM "Á³ëèé" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Дата та час"
@ -220,6 +244,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Збільшити"
STRING_PREVIEW_ZOOMOUT, "Зменшити"
STRING_PREVIEW_CLOSE, "Закрити"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
STRING_UNITS_CM, "cm"
END
@ -250,4 +276,3 @@ BEGIN
STRING_ALIGN_RIGHT, "По правому Краю"
STRING_ALIGN_CENTER, "По Центру"
END
#pragma code_page(default)

View file

@ -111,6 +111,30 @@ BEGIN
END
END
IDM_COLOR_POPUP MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Black", ID_COLOR_BLACK
MENUITEM "Maroon", ID_COLOR_MAROON
MENUITEM "Green", ID_COLOR_GREEN
MENUITEM "Olive" ID_COLOR_OLIVE
MENUITEM "Navy" ID_COLOR_NAVY
MENUITEM "Purple" ID_COLOR_PURPLE
MENUITEM "Teal" ID_COLOR_TEAL
MENUITEM "Gray" ID_COLOR_GRAY
MENUITEM "Silver" ID_COLOR_SILVER
MENUITEM "Red" ID_COLOR_RED
MENUITEM "Lime" ID_COLOR_LIME
MENUITEM "Yellow" ID_COLOR_YELLOW
MENUITEM "Blue" ID_COLOR_BLUE
MENUITEM "Fuchsia" ID_COLOR_FUCHSIA
MENUITEM "Aqua" ID_COLOR_AQUA
MENUITEM "White" ID_COLOR_WHITE
MENUITEM "Automatic" ID_COLOR_AUTOMATIC
END
END
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "日期和时间"
@ -226,6 +250,8 @@ BEGIN
STRING_PREVIEW_ZOOMIN, "Zoom in"
STRING_PREVIEW_ZOOMOUT, "Zoom out"
STRING_PREVIEW_CLOSE, "关闭"
STRING_PREVIEW_PAGE, "Page"
STRING_PREVIEW_PAGES, "Pages"
END
STRINGTABLE DISCARDABLE
@ -473,4 +499,3 @@ BEGIN
STRING_OPEN_FAILED, "不能開啟檔案."
STRING_OPEN_ACCESS_DENIED, "你沒有開啟檔案的權力."
END
#pragma code_page(default)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,014 B

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because it is too large Load diff

View file

@ -27,6 +27,7 @@
static const WCHAR key_recentfiles[] = {'R','e','c','e','n','t',' ','f','i','l','e',
' ','l','i','s','t',0};
static const WCHAR key_options[] = {'O','p','t','i','o','n','s',0};
static const WCHAR key_settings[] = {'S','e','t','t','i','n','g','s',0};
static const WCHAR key_rtf[] = {'R','T','F',0};
static const WCHAR key_text[] = {'T','e','x','t',0};
@ -94,9 +95,14 @@ void registry_set_options(HWND hMainWnd)
RegSetValueExW(hKey, var_maximized, 0, REG_DWORD, (LPBYTE)&isMaximized, sizeof(DWORD));
registry_set_pagemargins(hKey);
RegCloseKey(hKey);
}
RegCloseKey(hKey);
if(registry_get_handle(&hKey, &action, key_settings) == ERROR_SUCCESS)
{
registry_set_previewpages(hKey);
RegCloseKey(hKey);
}
}
void registry_read_winrect(RECT* rc)
@ -339,6 +345,13 @@ void registry_read_options(void)
registry_read_pagemargins(hKey);
RegCloseKey(hKey);
}
if(registry_get_handle(&hKey, 0, key_settings) != ERROR_SUCCESS) {
registry_read_previewpages(NULL);
} else {
registry_read_previewpages(hKey);
RegCloseKey(hKey);
}
}
static void registry_read_formatopts(int index, LPCWSTR key, DWORD barState[], DWORD wordWrap[])

View file

@ -1,4 +1,4 @@
/*
/*
* Copyright 2004 by Krzysztof Foltman
* Copyright 2007 by Alexander N. Sørnes <alex@thehandofagony.com>
*
@ -61,22 +61,28 @@ IDI_WRI ICON "wri.ico"
/* @makedep: txt.ico */
IDI_TXT ICON "txt.ico"
/* @makedep: zoom.cur */
IDC_ZOOM CURSOR "zoom.cur"
#include "Da.rc"
#include "De.rc"
#include "En.rc"
#include "Fr.rc"
#include "Hu.rc"
#include "Ko.rc"
#include "Nl.rc"
#include "Pl.rc"
#include "Tr.rc"
/* UTF-8 */
#include "De.rc"
#include "Fr.rc"
#include "It.rc"
#include "Ja.rc"
#include "Ko.rc"
#include "Lt.rc"
#include "Nl.rc"
#include "No.rc"
#include "Pl.rc"
#include "Pt.rc"
#include "Ru.rc"
#include "Si.rc"
#include "Sv.rc"
#include "Tr.rc"
#include "Uk.rc"
#include "Zh.rc"

View file

@ -63,6 +63,7 @@ static HWND hMainWnd;
static HWND hEditorWnd;
static HWND hFindWnd;
static HMENU hPopupMenu;
static HMENU hColorPopupMenu;
static UINT ID_FINDMSGSTRING;
@ -1836,17 +1837,18 @@ static LRESULT OnCreate( HWND hWnd )
hFormatBarWnd = CreateToolbarEx(hReBarWnd,
CCS_NOPARENTALIGN | CCS_NOMOVEY | WS_VISIBLE | TBSTYLE_TOOLTIPS | TBSTYLE_BUTTON,
IDC_FORMATBAR, 7, hInstance, IDB_FORMATBAR, NULL, 0, 16, 16, 16, 16, sizeof(TBBUTTON));
IDC_FORMATBAR, 8, hInstance, IDB_FORMATBAR, NULL, 0, 16, 16, 16, 16, sizeof(TBBUTTON));
AddButton(hFormatBarWnd, 0, ID_FORMAT_BOLD);
AddButton(hFormatBarWnd, 1, ID_FORMAT_ITALIC);
AddButton(hFormatBarWnd, 2, ID_FORMAT_UNDERLINE);
AddButton(hFormatBarWnd, 3, ID_FORMAT_COLOR);
AddSeparator(hFormatBarWnd);
AddButton(hFormatBarWnd, 3, ID_ALIGN_LEFT);
AddButton(hFormatBarWnd, 4, ID_ALIGN_CENTER);
AddButton(hFormatBarWnd, 5, ID_ALIGN_RIGHT);
AddButton(hFormatBarWnd, 4, ID_ALIGN_LEFT);
AddButton(hFormatBarWnd, 5, ID_ALIGN_CENTER);
AddButton(hFormatBarWnd, 6, ID_ALIGN_RIGHT);
AddSeparator(hFormatBarWnd);
AddButton(hFormatBarWnd, 6, ID_BULLET);
AddButton(hFormatBarWnd, 7, ID_BULLET);
SendMessageW(hFormatBarWnd, TB_AUTOSIZE, 0, 0);
@ -2001,6 +2003,15 @@ static LRESULT OnNotify( HWND hWnd, LPARAM lParam)
return 0;
}
/* Copied from dlls/comdlg32/fontdlg.c */
static const COLORREF textcolors[]=
{
0x00000000L,0x00000080L,0x00008000L,0x00008080L,
0x00800000L,0x00800080L,0x00808000L,0x00808080L,
0x00c0c0c0L,0x000000ffL,0x0000ff00L,0x0000ffffL,
0x00ff0000L,0x00ff00ffL,0x00ffff00L,0x00FFFFFFL
};
static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
{
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
@ -2098,7 +2109,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
break;
case ID_PRINT_QUICK:
print_quick(wszFileName);
print_quick(hMainWnd, wszFileName);
target_device(hMainWnd, wordWrap[reg_formatindex(fileFormat)]);
break;
@ -2106,7 +2117,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
{
int index = reg_formatindex(fileFormat);
DWORD tmp = barState[index];
barState[index] = 0;
barState[index] = 1 << BANDID_STATUSBAR;
set_bar_states();
barState[index] = tmp;
ShowWindow(hEditorWnd, FALSE);
@ -2152,6 +2163,46 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
break;
}
case ID_FORMAT_COLOR:
{
HWND hReBarWnd = GetDlgItem(hWnd, IDC_REBAR);
HWND hFormatBarWnd = GetDlgItem(hReBarWnd, IDC_FORMATBAR);
HMENU hPop;
RECT itemrc;
POINT pt;
int mid;
int itemidx = SendMessage(hFormatBarWnd, TB_COMMANDTOINDEX, ID_FORMAT_COLOR, 0);
SendMessage(hFormatBarWnd, TB_GETITEMRECT, itemidx, (LPARAM)&itemrc);
pt.x = itemrc.left;
pt.y = itemrc.bottom;
ClientToScreen(hFormatBarWnd, &pt);
hPop = GetSubMenu(hColorPopupMenu, 0);
mid = TrackPopupMenu(hPop, TPM_LEFTALIGN | TPM_TOPALIGN | TPM_LEFTBUTTON |
TPM_RETURNCMD | TPM_NONOTIFY,
pt.x, pt.y, 0, hWnd, 0);
if (mid >= ID_COLOR_FIRST && mid <= ID_COLOR_AUTOMATIC)
{
CHARFORMAT2W fmt;
ZeroMemory(&fmt, sizeof(fmt));
fmt.cbSize = sizeof(fmt);
SendMessageW(hwndEditor, EM_GETCHARFORMAT, SCF_SELECTION, (LPARAM)&fmt);
fmt.dwMask = CFM_COLOR;
if (mid < ID_COLOR_AUTOMATIC) {
fmt.crTextColor = textcolors[mid - ID_COLOR_FIRST];
fmt.dwEffects &= ~CFE_AUTOCOLOR;
} else {
fmt.dwEffects |= CFE_AUTOCOLOR;
}
SendMessageW(hwndEditor, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&fmt);
}
break;
}
case ID_EDIT_CUT:
PostMessageW(hwndEditor, WM_CUT, 0, 0);
break;
@ -2618,6 +2669,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
set_bar_states();
set_fileformat(SF_RTF);
hPopupMenu = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDM_POPUP));
hColorPopupMenu = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDM_COLOR_POPUP));
get_default_printer_opts();
target_device(hMainWnd, wordWrap[reg_formatindex(fileFormat)]);

View file

@ -80,6 +80,7 @@
#define ID_FORMAT_BOLD 1400
#define ID_FORMAT_ITALIC 1401
#define ID_FORMAT_UNDERLINE 1402
#define ID_FORMAT_COLOR 1403
#define ID_TOGGLE_TOOLBAR 1500
#define ID_TOGGLE_FORMATBAR 1501
@ -133,6 +134,25 @@
#define ID_ABOUT 1603
#define ID_VIEWPROPERTIES 1604
#define ID_COLOR_FIRST 1800
#define ID_COLOR_BLACK 1800
#define ID_COLOR_MAROON 1801
#define ID_COLOR_GREEN 1802
#define ID_COLOR_OLIVE 1803
#define ID_COLOR_NAVY 1804
#define ID_COLOR_PURPLE 1805
#define ID_COLOR_TEAL 1806
#define ID_COLOR_GRAY 1807
#define ID_COLOR_SILVER 1808
#define ID_COLOR_RED 1809
#define ID_COLOR_LIME 1810
#define ID_COLOR_YELLOW 1811
#define ID_COLOR_BLUE 1812
#define ID_COLOR_FUCHSIA 1813
#define ID_COLOR_AQUA 1814
#define ID_COLOR_WHITE 1815
#define ID_COLOR_AUTOMATIC 1816
#define IDC_STATUSBAR 2000
#define IDC_EDITOR 2001
#define IDC_TOOLBAR 2002
@ -159,6 +179,7 @@
#define IDM_MAINMENU 2200
#define IDM_POPUP 2201
#define IDM_COLOR_POPUP 2202
#define IDB_TOOLBAR 100
#define IDB_FORMATBAR 101
@ -168,6 +189,8 @@
#define IDI_WRI 104
#define IDI_TXT 105
#define IDC_ZOOM 106
#define STRING_ALL_FILES 1400
#define STRING_TEXT_FILES_TXT 1401
#define STRING_TEXT_FILES_UNICODE_TXT 1402
@ -195,8 +218,10 @@
#define STRING_PREVIEW_ZOOMIN 1453
#define STRING_PREVIEW_ZOOMOUT 1454
#define STRING_PREVIEW_CLOSE 1455
#define STRING_PREVIEW_PAGE 1456
#define STRING_PREVIEW_PAGES 1457
#define STRING_UNITS_CM 1456
#define STRING_UNITS_CM 1458
#define STRING_DEFAULT_FILENAME 1700
#define STRING_PROMPT_SAVE_CHANGES 1701
@ -217,7 +242,7 @@ LPWSTR file_basename(LPWSTR);
void dialog_printsetup(HWND);
void dialog_print(HWND, LPWSTR);
void target_device(HWND, DWORD);
void print_quick(LPWSTR);
void print_quick(HWND, LPWSTR);
LRESULT preview_command(HWND, WPARAM);
void init_preview(HWND, LPWSTR);
void close_preview(HWND);
@ -226,6 +251,8 @@ LRESULT print_preview(HWND);
void get_default_printer_opts(void);
void registry_set_pagemargins(HKEY);
void registry_read_pagemargins(HKEY);
void registry_set_previewpages(HKEY hKey);
void registry_read_previewpages(HKEY hKey);
LRESULT CALLBACK ruler_proc(HWND, UINT, WPARAM, LPARAM);
void redraw_ruler(HWND);

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

View file

@ -27,4 +27,3 @@ STRINGTABLE
{
IDS_FAILED, "Der Start von Wordpad ist fehlgeschlagen"
}
#pragma code_page(default)

View file

@ -28,4 +28,3 @@ STRINGTABLE
{
IDS_FAILED, "Wordpad n'a pas pu être démarré"
}
#pragma code_page(default)

View file

@ -29,4 +29,3 @@ STRINGTABLE
{
IDS_FAILED, "Impossibile avviare WordPad"
}
#pragma code_page(default)

View file

@ -29,4 +29,3 @@ STRINGTABLE
{
IDS_FAILED, "Wordpad の起動に失敗しました"
}
#pragma code_page(default)

View file

@ -29,4 +29,3 @@ STRINGTABLE
{
IDS_FAILED, "Nepavyko paleisti Wordpad"
}
#pragma code_page(default)

View file

@ -27,4 +27,3 @@ STRINGTABLE
{
IDS_FAILED, "Execuția Wordpad a eșuat"
}
#pragma code_page(default)

View file

@ -29,4 +29,3 @@ STRINGTABLE
{
IDS_FAILED, "Не удалось запустить Wordpad"
}
#pragma code_page(default)

View file

@ -28,4 +28,3 @@ STRINGTABLE
{
IDS_FAILED, "Zagon programa Wordpad ni uspel"
}
#pragma code_page(default)

View file

@ -31,4 +31,3 @@ STRINGTABLE
{
IDS_FAILED, "Не вдалось запустити Wordpad"
}
#pragma code_page(default)

View file

@ -20,17 +20,21 @@
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "De.rc"
#include "En.rc"
#include "Ko.rc"
#include "Nl.rc"
#include "No.rc"
#include "Pl.rc"
#include "Pt.rc"
#include "Sv.rc"
/* UTF-8 */
#include "De.rc"
#include "Fr.rc"
#include "It.rc"
#include "Ja.rc"
#include "Ko.rc"
#include "Lt.rc"
#include "Nl.rc"
#include "Pt.rc"
#include "Ro.rc"
#include "Ru.rc"
#include "Si.rc"
#include "Sv.rc"
#include "Uk.rc"

View file

@ -57,6 +57,7 @@
#include <winsock2.h>
#include "dhcpd.h"
#include "privsep.h"
#include "debug.h"
#define PERIOD 0x2e
#define hyphenchar(c) ((c) == 0x2d)
@ -109,22 +110,106 @@ int check_arp( struct interface_info *ip, struct client_lease *lp )
time_t scripttime;
static VOID CALLBACK ServiceMain(DWORD argc, LPWSTR *argv);
static WCHAR ServiceName[] = L"DHCP";
static SERVICE_TABLE_ENTRYW ServiceTable[] =
{
{ServiceName, ServiceMain},
{NULL, NULL}
};
SERVICE_STATUS_HANDLE ServiceStatusHandle;
SERVICE_STATUS ServiceStatus;
/* XXX Implement me */
int check_arp( struct interface_info *ip, struct client_lease *lp ) {
return 1;
}
static VOID CALLBACK
DispatchMain(DWORD argc, LPTSTR *argv)
static VOID
UpdateServiceStatus(DWORD dwState)
{
dispatch();
ServiceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
ServiceStatus.dwCurrentState = dwState;
ServiceStatus.dwControlsAccepted = 0;
ServiceStatus.dwWin32ExitCode = 0;
ServiceStatus.dwServiceSpecificExitCode = 0;
ServiceStatus.dwCheckPoint = 0;
if (dwState == SERVICE_START_PENDING ||
dwState == SERVICE_STOP_PENDING ||
dwState == SERVICE_PAUSE_PENDING ||
dwState == SERVICE_CONTINUE_PENDING)
ServiceStatus.dwWaitHint = 10000;
else
ServiceStatus.dwWaitHint = 0;
SetServiceStatus(ServiceStatusHandle,
&ServiceStatus);
}
static SERVICE_TABLE_ENTRY ServiceTable[2] =
static DWORD WINAPI
ServiceControlHandler(DWORD dwControl,
DWORD dwEventType,
LPVOID lpEventData,
LPVOID lpContext)
{
{TEXT("DHCP"), DispatchMain},
{NULL, NULL}
};
switch (dwControl)
{
case SERVICE_CONTROL_STOP:
UpdateServiceStatus(SERVICE_STOP_PENDING);
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;
case SERVICE_CONTROL_PAUSE:
UpdateServiceStatus(SERVICE_PAUSED);
return ERROR_SUCCESS;
case SERVICE_CONTROL_CONTINUE:
UpdateServiceStatus(SERVICE_START_PENDING);
UpdateServiceStatus(SERVICE_RUNNING);
return ERROR_SUCCESS;
case SERVICE_CONTROL_INTERROGATE:
SetServiceStatus(ServiceStatusHandle,
&ServiceStatus);
return ERROR_SUCCESS;
case SERVICE_CONTROL_SHUTDOWN:
UpdateServiceStatus(SERVICE_STOP_PENDING);
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;
default :
return ERROR_CALL_NOT_IMPLEMENTED;
}
}
static VOID CALLBACK
ServiceMain(DWORD argc, LPWSTR *argv)
{
ServiceStatusHandle = RegisterServiceCtrlHandlerExW(ServiceName,
ServiceControlHandler,
NULL);
if (!ServiceStatusHandle)
{
return;
}
UpdateServiceStatus(SERVICE_START_PENDING);
UpdateServiceStatus(SERVICE_RUNNING);
dispatch();
}
int
main(int argc, char *argv[])
@ -147,7 +232,7 @@ main(int argc, char *argv[])
DH_DbgPrint(MID_TRACE,("Going into dispatch()\n"));
StartServiceCtrlDispatcher(ServiceTable);
StartServiceCtrlDispatcherW(ServiceTable);
/* not reached */
return (0);

View file

@ -51,15 +51,17 @@
/* GLOBALS ******************************************************************/
static VOID CALLBACK
ServiceMain(DWORD argc, LPTSTR *argv);
static SERVICE_TABLE_ENTRY ServiceTable[2] =
static VOID CALLBACK ServiceMain(DWORD argc, LPWSTR *argv);
static WCHAR ServiceName[] = L"PlugPlay";
static SERVICE_TABLE_ENTRYW ServiceTable[] =
{
{TEXT("PlugPlay"), ServiceMain},
{ServiceName, ServiceMain},
{NULL, NULL}
};
static SERVICE_STATUS_HANDLE ServiceStatusHandle;
static SERVICE_STATUS ServiceStatus;
static WCHAR szRootDeviceId[] = L"HTREE\\ROOT\\0";
static HKEY hEnumKey = NULL;
@ -2446,6 +2448,72 @@ PnpEventThread(LPVOID lpParameter)
}
static VOID
UpdateServiceStatus(DWORD dwState)
{
ServiceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
ServiceStatus.dwCurrentState = dwState;
ServiceStatus.dwControlsAccepted = 0;
ServiceStatus.dwWin32ExitCode = 0;
ServiceStatus.dwServiceSpecificExitCode = 0;
ServiceStatus.dwCheckPoint = 0;
if (dwState == SERVICE_START_PENDING ||
dwState == SERVICE_STOP_PENDING ||
dwState == SERVICE_PAUSE_PENDING ||
dwState == SERVICE_CONTINUE_PENDING)
ServiceStatus.dwWaitHint = 10000;
else
ServiceStatus.dwWaitHint = 0;
SetServiceStatus(ServiceStatusHandle,
&ServiceStatus);
}
static DWORD WINAPI
ServiceControlHandler(DWORD dwControl,
DWORD dwEventType,
LPVOID lpEventData,
LPVOID lpContext)
{
DPRINT1("ServiceControlHandler() called\n");
switch (dwControl)
{
case SERVICE_CONTROL_STOP:
DPRINT1(" SERVICE_CONTROL_STOP received\n");
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;
case SERVICE_CONTROL_PAUSE:
DPRINT1(" SERVICE_CONTROL_PAUSE received\n");
UpdateServiceStatus(SERVICE_PAUSED);
return ERROR_SUCCESS;
case SERVICE_CONTROL_CONTINUE:
DPRINT1(" SERVICE_CONTROL_CONTINUE received\n");
UpdateServiceStatus(SERVICE_RUNNING);
return ERROR_SUCCESS;
case SERVICE_CONTROL_INTERROGATE:
DPRINT1(" SERVICE_CONTROL_INTERROGATE received\n");
SetServiceStatus(ServiceStatusHandle,
&ServiceStatus);
return ERROR_SUCCESS;
case SERVICE_CONTROL_SHUTDOWN:
DPRINT1(" SERVICE_CONTROL_SHUTDOWN received\n");
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;
default :
DPRINT1(" Control %lu received\n");
return ERROR_CALL_NOT_IMPLEMENTED;
}
}
static VOID CALLBACK
ServiceMain(DWORD argc, LPTSTR *argv)
{
@ -2457,6 +2525,17 @@ ServiceMain(DWORD argc, LPTSTR *argv)
DPRINT("ServiceMain() called\n");
ServiceStatusHandle = RegisterServiceCtrlHandlerExW(ServiceName,
ServiceControlHandler,
NULL);
if (!ServiceStatusHandle)
{
DPRINT1("RegisterServiceCtrlHandlerExW() failed! (Error %lu)\n", GetLastError());
return;
}
UpdateServiceStatus(SERVICE_START_PENDING);
hThread = CreateThread(NULL,
0,
PnpEventThread,
@ -2484,6 +2563,8 @@ ServiceMain(DWORD argc, LPTSTR *argv)
if (hThread != NULL)
CloseHandle(hThread);
UpdateServiceStatus(SERVICE_RUNNING);
DPRINT("ServiceMain() done\n");
}

View file

@ -66,25 +66,25 @@ BEGIN
LISTBOX IDC_PARTITION, 20,12,278,142,LBS_HASSTRINGS | WS_VSCROLL
PUSHBUTTON "&Stwórz", IDC_PARTCREATE, 20,155,50,15
PUSHBUTTON "&Usuñ", IDC_PARTDELETE, 76,155,50,15
PUSHBUTTON "D&river", IDC_DEVICEDRIVER, 162,155,50,15, WS_DISABLED
PUSHBUTTON "s&terownik", IDC_DEVICEDRIVER, 162,155,50,15, WS_DISABLED
PUSHBUTTON "&Opcje zaawansowane...", IDC_PARTMOREOPTS, 218,155,80,15
LTEXT "Naciœnij Dalej aby rozpocz¹æ proces instalacji.", IDC_STATIC, 10, 180 ,277, 20
END
IDD_PARTITION DIALOGEX DISCARDABLE 0, 0, 145, 90
STYLE WS_VISIBLE|WS_CAPTION|WS_THICKFRAME
CAPTION "Create Partition"
CAPTION "Stwórz partycjê"
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "",IDC_UPDOWN1,"msctls_updown32", WS_VISIBLE,104,22,9,13
CONTROL "Create and format partition",IDC_STATIC,"Button",BS_GROUPBOX,7,5,129,57
LTEXT "Size:",IDC_STATIC, 13,24,27,9
CONTROL "Stwórz i sformatuj partycjê",IDC_STATIC,"Button",BS_GROUPBOX,7,5,129,57
LTEXT "Rozmiar:",IDC_STATIC, 13,24,27,9
EDITTEXT IDC_PARTSIZE,52,23,53,13, WS_VISIBLE|WS_TABSTOP
LTEXT "GB",IDC_UNIT, 117,24,14,9
LTEXT "Filesystem:",IDC_STATIC,13,46,35,9
LTEXT "System plików:",IDC_STATIC,13,46,35,9
CONTROL "",IDC_FSTYPE,"ComboBox",WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,52,42,79,50
PUSHBUTTON "&OK",IDOK,35,68,47,15, WS_VISIBLE|WS_TABSTOP
PUSHBUTTON "&Cancel",IDCANCEL,87,68,47,15, WS_VISIBLE|WS_TABSTOP
PUSHBUTTON "&Anuluj",IDCANCEL,87,68,47,15, WS_VISIBLE|WS_TABSTOP
END
IDD_BOOTOPTIONS DIALOGEX DISCARDABLE 0, 0, 305, 105
@ -105,11 +105,11 @@ END
IDD_SUMMARYPAGE DIALOGEX 0, 0, 317, 193
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS Setup"
CAPTION "Instalator ReactOS"
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "Installation summary", IDC_ACTION, "Button", BS_GROUPBOX, 10,0,297,172
LTEXT "Click Next to start the installation process.", IDC_STATIC, 10, 180 ,277, 20
CONTROL "Podsumowanie instalacji", IDC_ACTION, "Button", BS_GROUPBOX, 10,0,297,172
LTEXT "Kliknij Dalej aby rozpocz¹æ proces instalacji.", IDC_STATIC, 10, 180 ,277, 20
END
IDD_PROCESSPAGE DIALOGEX 0, 0, 317, 193
@ -151,8 +151,8 @@ BEGIN
IDS_PROCESSSUBTITLE "Przygotuj i sformatuj partycjê, skopiuj pliki, skopiuj i zainstaluj bootloader"
IDS_RESTARTTITLE "Pierwszy etap instalacji zakoñczony sukcesem"
IDS_RESTARTSUBTITLE "Pierwszy etap instalacji zosta³ zakoñczony, uruchom ponownie komputer aby przejœæ do drugiego etapu"
IDS_SUMMARYTITLE "Installation Summary"
IDS_SUMMARYSUBTITLE "List installation properties to check before apply to the installation device"
IDS_SUMMARYTITLE "Podsumowanie instalacji"
IDS_SUMMARYSUBTITLE "SprawdŸ ustawienia instalacji przed dokonaniem zmian na dysku"
IDS_ABORTSETUP "Instalacja ReactOS nie zosta³a ukoñczona na tym komputerze. Jeœli teraz zakoñczysz instalacjê, bêdziesz musia³ uruchomiæ Instalator ponownie, aby zainstalowaæ Reactos. Na pewno zakoñczyæ?"
IDS_ABORTSETUP2 "Przerwaæ instalacjê?"
END

View file

@ -8,13 +8,13 @@ LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
STRING_ASSOC_HELP, "Modify file extension associations.\n\n\
assoc [.ext[=[FileType]]]\n\
STRING_ASSOC_HELP, "Modyfikuje skojarzenia rozszerzeń plików.\n\n\
assoc [.ext[=[typPliku]]]\n\
\n\
assoc (print all associations)\n\
assoc .ext (print specific association)\n\
assoc .ext= (remove specific association)\n\
assoc .ext=FileType (add new association)\n"
assoc (wyświetla wszystkie skojarzenia)\n\
assoc .ext (wyświetla określone skojarzenie)\n\
assoc .ext= (usuwa określone skojarzenie)\n\
assoc .ext=typPliku (dodaje nowe skojarzenie)\n"
STRING_ATTRIB_HELP, "Wy菏ietla lub zmienia atrybuty plik闚.\n\n\
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] nazwa_pliku ...\n\
@ -298,12 +298,12 @@ STRING_LOCALE_HELP1, "Czas bie
STRING_MKDIR_HELP, "Tworzy katalog.\n\n\
MKDIR [nap璠:]𦣇ie磬a\nMD [nap璠:]𦣇ie磬a"
STRING_MKLINK_HELP, "Creates a filesystem link object.\n\n\
MKLINK [/D | /H | /J] linkname target\n\n\
/D Indicates that the symbolic link target is a directory.\n\
/H Create a hard link.\n\
/J Create a directory junction.\n\n\
If neither /H or /J is specified, a symbolic link is created."
STRING_MKLINK_HELP, "Tworzy dowiązanie obiektu w systemie plików.\n\n\
MKLINK [/D | /H | /J] nazwa_linku element_docelowy\n\n\
/D Oznacza, że dowiązanie symboliczne elementu docelowego jest katalogiem.\n\
/H Tworzy dowiązanie twarde.\n\
/J Tworzy punkt połączenia katalogów.\n\n\
Jeśli nie zostały użyte zarówno /H jak i /J, zostanie utworzone dowiązanie symboliczne."
STRING_MEMMORY_HELP1, "Wy菏ietla ilo𨀣 pami璚i systemowej.\n\nMEMORY"
@ -546,7 +546,7 @@ IF Przetwarzanie warunkowe w programach wsadowych.\n\
LABEL Tworzy, zmienia lub kasuje etykiet<65> woluminu w danym nap璠zie.\n\
MD Tworzy katalog.\n\
MKDIR Tworzy katalog.\n\
MKLINK Creates a filesystem link object.\n\
MKLINK Tworzy dowiązanie obiektu w systemie plików.\n\
MOVE Przenosi jeden lub wi璚ej plik闚 z jednego katalogu do drugiego.\n\
PATH Wy菏ietla lub ustawia 𦣇ie磬i dost瘼u dla program闚.\n\
PAUSE Zawiesza przetwarzanie programu wsadowego i wy菏ietla komunikat.\n\
@ -656,11 +656,11 @@ STRING_FOR_ERROR, "z
STRING_SCREEN_COL, "nieprawid這wy numer kolumny"
STRING_SCREEN_ROW, "nieprawid這wy numer rz璠u"
STRING_TIMER_TIME "Stoper %d czas - %s: "
STRING_MKLINK_CREATED_SYMBOLIC, "Symbolic link created for %s <<===>> %s\n"
STRING_MKLINK_CREATED_HARD, "Hard link created for %s <<===>> %s\n"
STRING_MKLINK_CREATED_JUNCTION, "Junction created for %s <<===>> %s\n"
STRING_MORE, "More? "
STRING_CANCEL_BATCH_FILE, "\r\nCtrl-Break pressed. Cancel batch file? (Tak/Nie/Zawsze) "
STRING_MKLINK_CREATED_SYMBOLIC, "Dowiązanie symboliczne utworzone dla %s <<===>> %s\n"
STRING_MKLINK_CREATED_HARD, "Dowiązanie twarde utworzone dla %s <<===>> %s\n"
STRING_MKLINK_CREATED_JUNCTION, "Punkt dowiązania katalogów utworzony dla %s <<===>> %s\n"
STRING_MORE, "Więcej? "
STRING_CANCEL_BATCH_FILE, "\r\nWciśnięto Ctrl-Break. Anulować wykonanie pliku wsadowego? (Tak/Nie/Zawsze) "
STRING_INVALID_OPERAND, "Nieprawid這wy argument operatora."
STRING_EXPECTED_CLOSE_PAREN, "Oczekiwano ')'."

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef __CMD_PRECOMP_H
#define __CMD_PRECOMP_H
#ifdef _MSC_VER
#pragma warning ( disable : 4103 ) /* use #pragma pack to change alignment */
@ -42,3 +43,5 @@ WINE_DEFAULT_DEBUG_CHANNEL(cmd);
#else
#define debugstr_aw debugstr_a
#endif
#endif /* __CMD_PRECOMP_H */

View file

@ -47,6 +47,7 @@ static const char UsageStr[] =
" Install a product:\n"
" msiexec {package|productcode} [property]\n"
" msiexec /i {package|productcode} [property]\n"
" msiexec /package {package|productcode} [property]\n"
" msiexec /a package [property]\n"
" Repair an installation:\n"
" msiexec /f[p|o|e|d|c|a|u|m|s|v] {package|productcode}\n"
@ -562,12 +563,13 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
{
FunctionUnregServer = TRUE;
}
else if(msi_option_prefix(argvW[i], "i"))
else if(msi_option_prefix(argvW[i], "i") || msi_option_prefix(argvW[i], "package"))
{
LPWSTR argvWi = argvW[i];
int argLen = (msi_option_prefix(argvW[i], "i") ? 2 : 8);
FunctionInstall = TRUE;
if(lstrlenW(argvWi) > 2)
argvWi += 2;
if(lstrlenW(argvW[i]) > argLen)
argvWi += argLen;
else
{
i++;

View file

@ -12,7 +12,6 @@
<library>ole32</library>
<library>msi</library>
<file>msiexec.c</file>
<file>rsrc.rc</file>
<file>service.c</file>
<file>version.rc</file>
<file>rsrc.rc</file>
</module>

View file

@ -18,7 +18,16 @@
#include <windows.h>
#include "version.rc"
#define WINE_FILEDESCRIPTION_STR "Wine Installer"
#define WINE_FILENAME_STR "msiexec.exe"
#define WINE_FILETYPE VFT_APP
#define WINE_FILEVERSION 3,1,4000,1823
#define WINE_FILEVERSION_STR "3.1.4000.1823"
#define WINE_PRODUCTVERSION 3,1,4000,1823
#define WINE_PRODUCTVERSION_STR "3.1.4000.1823"
#define WINE_PRODUCTNAME_STR "Wine Installer"
#include "wine/wine_common_ver.rc"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

View file

@ -121,37 +121,6 @@ ScmGetServiceEntryByResumeCount(DWORD dwResumeCount)
}
PSERVICE
ScmGetServiceEntryByClientHandle(HANDLE Handle)
{
PLIST_ENTRY ServiceEntry;
PSERVICE CurrentService;
DPRINT("ScmGetServiceEntryByClientHandle() called\n");
DPRINT("looking for %p\n", Handle);
ServiceEntry = ServiceListHead.Flink;
while (ServiceEntry != &ServiceListHead)
{
CurrentService = CONTAINING_RECORD(ServiceEntry,
SERVICE,
ServiceListEntry);
if (CurrentService->hClient == Handle)
{
DPRINT("Found service: '%S'\n", CurrentService->lpDisplayName);
return CurrentService;
}
ServiceEntry = ServiceEntry->Flink;
}
DPRINT("Couldn't find a matching service\n");
return NULL;
}
DWORD
ScmCreateNewServiceRecord(LPCWSTR lpServiceName,
PSERVICE *lpServiceRecord)
@ -710,12 +679,15 @@ ScmGetBootAndSystemDriverState(VOID)
DWORD
ScmControlService(PSERVICE Service,
DWORD dwControl,
LPSERVICE_STATUS lpServiceStatus)
DWORD dwControl)
{
PSCM_CONTROL_PACKET ControlPacket;
DWORD Count;
SCM_REPLY_PACKET ReplyPacket;
DWORD dwWriteCount = 0;
DWORD dwReadCount = 0;
DWORD TotalLength;
DWORD dwError = ERROR_SUCCESS;
DPRINT("ScmControlService() called\n");
@ -728,31 +700,37 @@ ScmControlService(PSERVICE Service,
return ERROR_NOT_ENOUGH_MEMORY;
ControlPacket->dwControl = dwControl;
ControlPacket->hClient = Service->hClient;
ControlPacket->dwSize = TotalLength;
ControlPacket->hServiceStatus = (SERVICE_STATUS_HANDLE)Service;
wcscpy(&ControlPacket->szArguments[0], Service->lpServiceName);
/* Send the control packet */
WriteFile(Service->ControlPipeHandle,
ControlPacket,
sizeof(SCM_CONTROL_PACKET) + (TotalLength * sizeof(WCHAR)),
&Count,
&dwWriteCount,
NULL);
/* FIXME: Read the reply */
/* Read the reply */
ReadFile(Service->ControlPipeHandle,
&ReplyPacket,
sizeof(SCM_REPLY_PACKET),
&dwReadCount,
NULL);
/* Release the contol packet */
HeapFree(GetProcessHeap(),
0,
ControlPacket);
RtlCopyMemory(lpServiceStatus,
&Service->Status,
sizeof(SERVICE_STATUS));
if (dwReadCount == sizeof(SCM_REPLY_PACKET))
{
dwError = ReplyPacket.dwError;
}
DPRINT("ScmControlService) done\n");
DPRINT("ScmControlService() done\n");
return ERROR_SUCCESS;
return dwError;
}
@ -762,11 +740,15 @@ ScmSendStartCommand(PSERVICE Service,
LPWSTR *argv)
{
PSCM_CONTROL_PACKET ControlPacket;
SCM_REPLY_PACKET ReplyPacket;
DWORD TotalLength;
DWORD ArgsLength = 0;
DWORD Length;
PWSTR Ptr;
DWORD Count;
DWORD dwWriteCount = 0;
DWORD dwReadCount = 0;
DWORD dwError = ERROR_SUCCESS;
DWORD i;
DPRINT("ScmSendStartCommand() called\n");
@ -774,10 +756,10 @@ ScmSendStartCommand(PSERVICE Service,
TotalLength = wcslen(Service->lpServiceName) + 1;
if (argc > 0)
{
for (Count = 0; Count < argc; Count++)
for (i = 0; i < argc; i++)
{
DPRINT("Arg: %S\n", argv[Count]);
Length = wcslen(argv[Count]) + 1;
DPRINT("Arg: %S\n", argv[i]);
Length = wcslen(argv[i]) + 1;
TotalLength += Length;
ArgsLength += Length;
}
@ -793,7 +775,7 @@ ScmSendStartCommand(PSERVICE Service,
return ERROR_NOT_ENOUGH_MEMORY;
ControlPacket->dwControl = SERVICE_CONTROL_START;
ControlPacket->hClient = Service->hClient;
ControlPacket->hServiceStatus = (SERVICE_STATUS_HANDLE)Service;
ControlPacket->dwSize = TotalLength;
Ptr = &ControlPacket->szArguments[0];
wcscpy(Ptr, Service->lpServiceName);
@ -817,19 +799,29 @@ ScmSendStartCommand(PSERVICE Service,
WriteFile(Service->ControlPipeHandle,
ControlPacket,
sizeof(SCM_CONTROL_PACKET) + (TotalLength - 1) * sizeof(WCHAR),
&Count,
&dwWriteCount,
NULL);
/* FIXME: Read the reply */
/* Read the reply */
ReadFile(Service->ControlPipeHandle,
&ReplyPacket,
sizeof(SCM_REPLY_PACKET),
&dwReadCount,
NULL);
/* Release the contol packet */
HeapFree(GetProcessHeap(),
0,
ControlPacket);
if (dwReadCount == sizeof(SCM_REPLY_PACKET))
{
dwError = ReplyPacket.dwError;
}
DPRINT("ScmSendStartCommand() done\n");
return ERROR_SUCCESS;
return dwError;
}
@ -850,6 +842,7 @@ ScmStartUserModeService(PSERVICE Service,
WCHAR NtControlPipeName[MAX_PATH + 1];
HKEY hServiceCurrentKey = INVALID_HANDLE_VALUE;
DWORD KeyDisposition;
DWORD dwProcessId;
RtlInitUnicodeString(&ImagePath, NULL);
@ -991,7 +984,7 @@ ScmStartUserModeService(PSERVICE Service,
/* Read SERVICE_STATUS_HANDLE from pipe */
if (!ReadFile(Service->ControlPipeHandle,
(LPVOID)&Service->hClient,
(LPVOID)&dwProcessId,
sizeof(DWORD),
&dwRead,
NULL))
@ -1002,7 +995,7 @@ ScmStartUserModeService(PSERVICE Service,
}
else
{
DPRINT("Received service status %lu\n", Service->hClient);
DPRINT("Received service process ID %lu\n", dwProcessId);
/* Send start command */
dwError = ScmSendStartCommand(Service, argc, argv);
@ -1222,7 +1215,6 @@ ScmAutoShutdownServices(VOID)
{
PLIST_ENTRY ServiceEntry;
PSERVICE CurrentService;
SERVICE_STATUS ServiceStatus;
DPRINT("ScmAutoShutdownServices() called\n");
@ -1235,7 +1227,7 @@ ScmAutoShutdownServices(VOID)
CurrentService->Status.dwCurrentState == SERVICE_START_PENDING)
{
/* shutdown service */
ScmControlService(CurrentService, SERVICE_CONTROL_STOP, &ServiceStatus);
ScmControlService(CurrentService, SERVICE_CONTROL_STOP);
}
ServiceEntry = ServiceEntry->Flink;
@ -1244,4 +1236,25 @@ ScmAutoShutdownServices(VOID)
DPRINT("ScmGetBootAndSystemDriverState() done\n");
}
BOOL
ScmLockDatabaseExclusive(VOID)
{
return RtlAcquireResourceExclusive(&DatabaseLock, TRUE);
}
BOOL
ScmLockDatabaseShared(VOID)
{
return RtlAcquireResourceShared(&DatabaseLock, TRUE);
}
VOID
ScmUnlockDatabase(VOID)
{
RtlReleaseResource(&DatabaseLock);
}
/* EOF */

View file

@ -637,8 +637,12 @@ DWORD RControlService(
{
/* Send control code to the service */
dwError = ScmControlService(lpService,
dwControl,
lpServiceStatus);
dwControl);
/* Return service status information */
RtlCopyMemory(lpServiceStatus,
&lpService->Status,
sizeof(SERVICE_STATUS));
}
if ((dwError == ERROR_SUCCESS) && (pcbBytesNeeded))
@ -652,10 +656,6 @@ DWORD RControlService(
lpService->ThreadId = 0;
}
/* Return service status information */
RtlCopyMemory(lpServiceStatus,
&lpService->Status,
sizeof(SERVICE_STATUS));
return dwError;
}
@ -978,11 +978,15 @@ DWORD RQueryServiceStatus(
return ERROR_INVALID_HANDLE;
}
ScmLockDatabaseShared();
/* Return service status information */
RtlCopyMemory(lpServiceStatus,
&lpService->Status,
sizeof(SERVICE_STATUS));
ScmUnlockDatabase();
return ERROR_SUCCESS;
}
@ -1030,7 +1034,7 @@ DWORD RSetServiceStatus(
return ERROR_INVALID_HANDLE;
}
lpService = ScmGetServiceEntryByClientHandle((HANDLE)hServiceStatus);
lpService = (PSERVICE)hServiceStatus;
if (lpService == NULL)
{
DPRINT("lpService == NULL!\n");
@ -1059,11 +1063,14 @@ DWORD RSetServiceStatus(
return ERROR_INVALID_DATA;
}
ScmLockDatabaseExclusive();
RtlCopyMemory(&lpService->Status,
lpServiceStatus,
sizeof(SERVICE_STATUS));
ScmUnlockDatabase();
DPRINT("Set %S to %lu\n", lpService->lpDisplayName, lpService->Status.dwCurrentState);
DPRINT("RSetServiceStatus() done\n");

View file

@ -42,7 +42,6 @@ typedef struct _SERVICE
DWORD dwResumeCount;
DWORD dwRefCount;
CLIENT_HANDLE hClient;
SERVICE_STATUS Status;
DWORD dwStartType;
DWORD dwErrorControl;
@ -112,15 +111,18 @@ DWORD ScmStartService(PSERVICE Service,
PSERVICE ScmGetServiceEntryByName(LPCWSTR lpServiceName);
PSERVICE ScmGetServiceEntryByDisplayName(LPCWSTR lpDisplayName);
PSERVICE ScmGetServiceEntryByResumeCount(DWORD dwResumeCount);
PSERVICE ScmGetServiceEntryByClientHandle(HANDLE Handle);
DWORD ScmCreateNewServiceRecord(LPCWSTR lpServiceName,
PSERVICE *lpServiceRecord);
VOID ScmDeleteServiceRecord(PSERVICE lpService);
DWORD ScmMarkServiceForDelete(PSERVICE pService);
DWORD ScmControlService(PSERVICE Service,
DWORD dwControl,
LPSERVICE_STATUS lpServiceStatus);
DWORD dwControl);
BOOL ScmLockDatabaseExclusive(VOID);
BOOL ScmLockDatabaseShared(VOID);
VOID ScmUnlockDatabase(VOID);
/* driver.c */

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef _SMSS_H_INCLUDED_
#define _SMSS_H_INCLUDED_
#include <stdio.h>
#include <stdlib.h>
@ -112,4 +113,7 @@ NTSTATUS SmInitializeDbgSs(VOID);
VOID NTAPI DisplayString(LPCWSTR lpwString);
VOID NTAPI PrintString (char* fmt, ...);
#endif /* _SMSS_H_INCLUDED_ */
/* EOF */

View file

@ -482,6 +482,9 @@ drivers\base\beep\beep.sys 2
drivers\base\null\null.sys 2
drivers\base\nmidebug\nmidebug.sys 2
drivers\battery\cmbatt\cmbatt.sys 2
drivers\battery\battc\battc.sys 2
drivers\bus\isapnp\isapnp.sys 2
drivers\directx\dxapi\dxapi.sys 2
@ -628,7 +631,9 @@ media\nls\c_28606.nls 1
media\drivers\etc\services 5
media\inf\audio.inf 6
media\inf\acpi.inf 6
media\inf\battery.inf 6
media\inf\cdrom.inf 6
media\inf\cpu.inf 6
media\inf\display.inf 6
media\inf\font.inf 6
media\inf\fdc.inf 6
@ -754,6 +759,7 @@ modules\rostests\winetests\comctl32\comctl32_winetest.exe 7 o
modules\rostests\winetests\comdlg32\comdlg32_winetest.exe 7 optional
modules\rostests\winetests\crypt32\crypt32_winetest.exe 7 optional
modules\rostests\winetests\cryptnet\cryptnet_winetest.exe 7 optional
modules\rostests\winetests\dsound\dsound_winetest.exe 7 optional
modules\rostests\winetests\gdi32\gdi32_winetest.exe 7 optional
modules\rostests\winetests\gdiplus\gdiplus_winetest.exe 7 optional
modules\rostests\winetests\hlink\hlink_winetest.exe 7 optional
@ -797,6 +803,7 @@ modules\rostests\winetests\winmm\winmm_winetest.exe 7 o
modules\rostests\winetests\wintrust\wintrust_winetest.exe 7 optional
modules\rostests\winetests\wlanapi\wlanapi_winetest.exe 7 optional
modules\rostests\winetests\ws2_32\ws2_32_winetest.exe 7 optional
modules\rostests\winetests\xmllite\xmllite_winetest.exe 7 optional
modules\wallpaper\Angelus_02_ROSWP.bmp 4 optional

View file

@ -0,0 +1,97 @@
/*
* PROJECT: ReactOS Kernel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: boot/freeldr/freeldr/arch/i386/hal/halstub.c
* PURPOSE: I/O Stub HAL Routines
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
*/
/* INCLUDES ******************************************************************/
#include <ntoskrnl.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS *****************************************************************/
NTSTATUS
FASTCALL
xHalIoReadPartitionTable(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN BOOLEAN ReturnRecognizedPartitions,
OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
{
return IoReadPartitionTable(DeviceObject,
SectorSize,
ReturnRecognizedPartitions,
PartitionBuffer);
}
UCHAR
NTAPI
xHalVectorToIDTEntry(IN ULONG Vector)
{
/* Return the vector */
return Vector;
}
VOID
NTAPI
xHalHaltSystem(VOID)
{
/* Halt execution */
while (TRUE);
}
/* GLOBALS *******************************************************************/
HAL_DISPATCH HalDispatchTable =
{
HAL_DISPATCH_VERSION,
(pHalQuerySystemInformation)NULL,
(pHalSetSystemInformation)NULL,
(pHalQueryBusSlots)NULL,
0,
(pHalExamineMBR)NULL,
(pHalIoAssignDriveLetters)NULL,
(pHalIoReadPartitionTable)xHalIoReadPartitionTable,
(pHalIoSetPartitionInformation)NULL,
(pHalIoWritePartitionTable)NULL,
(pHalHandlerForBus)NULL,
(pHalReferenceBusHandler)NULL,
(pHalReferenceBusHandler)NULL,
(pHalInitPnpDriver)NULL,
(pHalInitPowerManagement)NULL,
(pHalGetDmaAdapter)NULL,
(pHalGetInterruptTranslator)NULL,
(pHalStartMirroring)NULL,
(pHalEndMirroring)NULL,
(pHalMirrorPhysicalMemory)NULL,
(pHalEndOfBoot)NULL,
(pHalMirrorVerify)NULL
};
HAL_PRIVATE_DISPATCH HalPrivateDispatchTable =
{
HAL_PRIVATE_DISPATCH_VERSION,
(pHalHandlerForBus)NULL,
(pHalHandlerForConfigSpace)NULL,
(pHalLocateHiberRanges)NULL,
(pHalRegisterBusHandler)NULL,
(pHalSetWakeEnable)NULL,
(pHalSetWakeAlarm)NULL,
(pHalTranslateBusAddress)NULL,
(pHalAssignSlotResources)NULL,
(pHalHaltSystem)xHalHaltSystem,
(pHalFindBusAddressTranslation)NULL,
(pHalResetDisplay)NULL,
(pHalAllocateMapRegisters)NULL,
(pKdSetupPciDeviceForDebugging)NULL,
(pKdReleasePciDeviceForDebugging)NULL,
(pKdGetAcpiTablePhase0)NULL,
(pKdCheckPowerButton)NULL,
(pHalVectorToIDTEntry)xHalVectorToIDTEntry,
(pKdMapPhysicalMemory64)NULL,
(pKdUnmapVirtualAddress)NULL
};

View file

@ -17,7 +17,6 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#define _NTSYSTEM_
#include <freeldr.h>
#define NDEBUG

View file

@ -0,0 +1,114 @@
#include <ntoskrnl.h>
#define NDEBUG
#include <arch.h>
VOID
NTAPI
KeInitializeEvent(
IN PRKEVENT Event,
IN EVENT_TYPE Type,
IN BOOLEAN State)
{
}
VOID
FASTCALL
KiAcquireSpinLock(
IN PKSPIN_LOCK SpinLock)
{
}
VOID
FASTCALL
KiReleaseSpinLock(
IN PKSPIN_LOCK SpinLock)
{
}
VOID
NTAPI
KeSetTimeIncrement(
IN ULONG MaxIncrement,
IN ULONG MinIncrement)
{
}
NTKERNELAPI
VOID
FASTCALL
IoAssignDriveLetters(
IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock,
IN PSTRING NtDeviceName,
OUT PUCHAR NtSystemPath,
OUT PSTRING NtSystemPathString)
{
}
NTKERNELAPI
NTSTATUS
FASTCALL
IoSetPartitionInformation(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN ULONG PartitionNumber,
IN ULONG PartitionType)
{
return STATUS_NOT_IMPLEMENTED;
}
NTKERNELAPI
NTSTATUS
FASTCALL
IoWritePartitionTable(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN ULONG SectorsPerTrack,
IN ULONG NumberOfHeads,
IN struct _DRIVE_LAYOUT_INFORMATION *PartitionBuffer)
{
return STATUS_NOT_IMPLEMENTED;
}
NTHALAPI
VOID
NTAPI
KeStallExecutionProcessor(
IN ULONG MicroSeconds)
{
REGS Regs;
ULONG usec_this;
// Int 15h AH=86h
// BIOS - WAIT (AT,PS)
//
// AH = 86h
// CX:DX = interval in microseconds
// Return:
// CF clear if successful (wait interval elapsed)
// CF set on error or AH=83h wait already in progress
// AH = status (see #00496)
// Note: The resolution of the wait period is 977 microseconds on
// many systems because many BIOSes use the 1/1024 second fast
// interrupt from the AT real-time clock chip which is available on INT 70;
// because newer BIOSes may have much more precise timers available, it is
// not possible to use this function accurately for very short delays unless
// the precise behavior of the BIOS is known (or found through testing)
while (MicroSeconds)
{
usec_this = MicroSeconds;
if (usec_this > 4000000)
{
usec_this = 4000000;
}
Regs.b.ah = 0x86;
Regs.w.cx = usec_this >> 16;
Regs.w.dx = usec_this & 0xffff;
Int386(0x15, &Regs, &Regs);
MicroSeconds -= usec_this;
}
}

View file

@ -119,6 +119,12 @@ VOID RunLoader(VOID)
return;
}
// Load additional SCSI driver (if any)
if (LoadBootDeviceDriver() != ESUCCESS)
{
UiMessageBoxCritical("Unable to load additional boot device driver");
}
if (!IniFileInitialize())
{
UiMessageBoxCritical("Error initializing .ini file");

View file

@ -173,6 +173,12 @@ VOID DebugPrintHeader(ULONG Mask)
case DPRINT_HWDETECT:
DbgPrint("HWDETECT: ");
break;
case DPRINT_PELOADER:
DbgPrint("PELOADER: ");
break;
case DPRINT_SCSIPORT:
DbgPrint("SCSIPORT: ");
break;
default:
DbgPrint("UNKNOWN: ");
break;
@ -194,6 +200,12 @@ VOID DbgPrintMask(ULONG Mask, char *format, ...)
return;
}
// Disable file/line for scsiport messages
if (Mask & DPRINT_SCSIPORT)
{
DebugStartOfLine = FALSE;
}
// Print the header if we have started a new line
if (DebugStartOfLine)
{
@ -328,3 +340,22 @@ MsgBoxPrint(const char *Format, ...)
return 0;
}
NTKERNELAPI
DECLSPEC_NORETURN
VOID
NTAPI
KeBugCheckEx(
IN ULONG BugCheckCode,
IN ULONG_PTR BugCheckParameter1,
IN ULONG_PTR BugCheckParameter2,
IN ULONG_PTR BugCheckParameter3,
IN ULONG_PTR BugCheckParameter4)
{
char Buffer[64];
sprintf(Buffer, "*** STOP: 0x%08lX (0x%08lX, 0x%08lX, 0x%08lX, 0x%08lX)",
BugCheckCode, BugCheckParameter1, BugCheckParameter2,
BugCheckParameter3, BugCheckParameter4);
UiMessageBoxCritical(Buffer);
assert(FALSE);
for (;;);
}

View file

@ -240,4 +240,152 @@ BOOLEAN DiskReadBootRecord(ULONG DriveNumber, ULONGLONG LogicalSectorNumber, PMA
return TRUE;
}
NTSTATUS
NTAPI
IopReadBootRecord(
IN PDEVICE_OBJECT DeviceObject,
IN ULONGLONG LogicalSectorNumber,
IN ULONG SectorSize,
OUT PMASTER_BOOT_RECORD BootRecord)
{
ULONG FileId = (ULONG)DeviceObject;
LARGE_INTEGER Position;
ULONG BytesRead;
ULONG Status;
Position.QuadPart = LogicalSectorNumber * SectorSize;
Status = ArcSeek(FileId, &Position, SeekAbsolute);
if (Status != ESUCCESS)
return STATUS_IO_DEVICE_ERROR;
Status = ArcRead(FileId, BootRecord, SectorSize, &BytesRead);
if (Status != ESUCCESS || BytesRead != SectorSize)
return STATUS_IO_DEVICE_ERROR;
return STATUS_SUCCESS;
}
BOOLEAN
NTAPI
IopCopyPartitionRecord(
IN BOOLEAN ReturnRecognizedPartitions,
IN ULONG SectorSize,
IN PPARTITION_TABLE_ENTRY PartitionTableEntry,
OUT PARTITION_INFORMATION *PartitionEntry)
{
BOOLEAN IsRecognized;
IsRecognized = TRUE; /* FIXME */
if (!IsRecognized && ReturnRecognizedPartitions)
return FALSE;
PartitionEntry->StartingOffset.QuadPart = (ULONGLONG)PartitionTableEntry->SectorCountBeforePartition * SectorSize;
PartitionEntry->PartitionLength.QuadPart = (ULONGLONG)PartitionTableEntry->PartitionSectorCount * SectorSize;
PartitionEntry->HiddenSectors = 0;
PartitionEntry->PartitionNumber = 0; /* Will be filled later */
PartitionEntry->PartitionType = PartitionTableEntry->SystemIndicator;
PartitionEntry->BootIndicator = (PartitionTableEntry->BootIndicator & 0x80) ? TRUE : FALSE;
PartitionEntry->RecognizedPartition = IsRecognized;
PartitionEntry->RewritePartition = FALSE;
return TRUE;
}
NTKERNELAPI
NTSTATUS
FASTCALL
IoReadPartitionTable(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN BOOLEAN ReturnRecognizedPartitions,
OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
{
PMASTER_BOOT_RECORD MasterBootRecord;
PDRIVE_LAYOUT_INFORMATION Partitions;
ULONG NbPartitions, i, Size;
NTSTATUS ret;
*PartitionBuffer = NULL;
if (SectorSize < sizeof(MASTER_BOOT_RECORD))
return STATUS_NOT_SUPPORTED;
MasterBootRecord = ExAllocatePool(NonPagedPool, SectorSize);
if (!MasterBootRecord)
return STATUS_NO_MEMORY;
/* Read disk MBR */
ret = IopReadBootRecord(DeviceObject, 0, SectorSize, MasterBootRecord);
if (!NT_SUCCESS(ret))
{
ExFreePool(MasterBootRecord);
return ret;
}
/* Check validity of boot record */
if (MasterBootRecord->MasterBootRecordMagic != 0xaa55)
{
ExFreePool(MasterBootRecord);
return STATUS_NOT_SUPPORTED;
}
/* Count number of partitions */
NbPartitions = 0;
for (i = 0; i < 4; i++)
{
NbPartitions++;
if (MasterBootRecord->PartitionTable[i].SystemIndicator == PARTITION_EXTENDED ||
MasterBootRecord->PartitionTable[i].SystemIndicator == PARTITION_XINT13_EXTENDED)
{
/* FIXME: unhandled case; count number of partitions */
UNIMPLEMENTED;
}
}
if (NbPartitions == 0)
{
ExFreePool(MasterBootRecord);
return STATUS_NOT_SUPPORTED;
}
/* Allocation space to store partitions */
Size = FIELD_OFFSET(DRIVE_LAYOUT_INFORMATION, PartitionEntry) +
NbPartitions * sizeof(PARTITION_INFORMATION);
Partitions = ExAllocatePool(NonPagedPool, Size);
if (!Partitions)
{
ExFreePool(MasterBootRecord);
return STATUS_NO_MEMORY;
}
/* Count number of partitions */
NbPartitions = 0;
for (i = 0; i < 4; i++)
{
if (IopCopyPartitionRecord(ReturnRecognizedPartitions,
SectorSize,
&MasterBootRecord->PartitionTable[i],
&Partitions->PartitionEntry[NbPartitions]))
{
Partitions->PartitionEntry[NbPartitions].PartitionNumber = NbPartitions + 1;
NbPartitions++;
}
if (MasterBootRecord->PartitionTable[i].SystemIndicator == PARTITION_EXTENDED ||
MasterBootRecord->PartitionTable[i].SystemIndicator == PARTITION_XINT13_EXTENDED)
{
/* FIXME: unhandled case; copy partitions */
UNIMPLEMENTED;
}
}
Partitions->PartitionCount = NbPartitions;
Partitions->Signature = MasterBootRecord->Signature;
ExFreePool(MasterBootRecord);
*PartitionBuffer = Partitions;
return STATUS_SUCCESS;
}
#endif

File diff suppressed because it is too large Load diff

View file

@ -20,6 +20,9 @@
#include <freeldr.h>
#include <debug.h>
VOID NTAPI HalpInitializePciStubs(VOID);
VOID NTAPI HalpInitBusHandler(VOID);
VOID BootMain(LPSTR CmdLine)
{
CmdLineParse(CmdLine);
@ -44,5 +47,7 @@ VOID BootMain(LPSTR CmdLine)
return;
}
HalpInitializePciStubs();
HalpInitBusHandler();
RunLoader();
}

View file

@ -7,6 +7,7 @@
<library>freeldr_startup</library>
<library>freeldr_base64k</library>
<library>freeldr_base</library>
<library>mini_hal</library>
<library>freeldr_arch</library>
<library>freeldr_main</library>
<library>rossym</library>

View file

@ -7,6 +7,7 @@
<include base="ReactOS">include/reactos/libs</include>
<include base="ReactOS">include/reactos/elf</include>
<define name="_NTHAL_" />
<define name="_NTSYSTEM_" />
<directory name="arch">
<directory name="i386">
<if property="ARCH" value="i386">
@ -14,6 +15,7 @@
<file>archmach.c</file>
<file>custom.c</file>
<file>drivemap.c</file>
<file>halstub.c</file>
<file>hardware.c</file>
<file>hwacpi.c</file>
<file>hwapm.c</file>
@ -24,6 +26,7 @@
<file>loader.c</file>
<file>machpc.c</file>
<file>miscboot.c</file>
<file>ntoskrnl.c</file>
<file>pccons.c</file>
<file>pcdisk.c</file>
<file>pcmem.c</file>

View file

@ -22,6 +22,7 @@
<file>disk.c</file>
<file>partition.c</file>
<file>ramdisk.c</file>
<file>scsiport.c</file>
</directory>
<directory name="fs">
<file>ext2.c</file>

View file

@ -319,6 +319,13 @@ LONG ArcOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId)
FileData[DeviceId].FuncTable = NULL;
return ret;
}
else if (!*FileName)
{
/* Done, caller wanted to open the raw device */
*FileId = DeviceId;
pDevice->ReferenceCount++;
return ESUCCESS;
}
/* Try to detect the file system */
#ifndef _M_ARM

View file

@ -35,6 +35,7 @@
#define DPRINT_HWDETECT 0x00000400 // OR this with DebugPrintMask to enable hardware detection messages
#define DPRINT_WINDOWS 0x00000800 // OR this with DebugPrintMask to enable messages from Windows loader
#define DPRINT_PELOADER 0x00001000 // OR this with DebugPrintMask to enable messages from PE images loader
#define DPRINT_SCSIPORT 0x00002000 // OR this with DebugPrintMask to enable messages from SCSI miniport
extern char* g_file;
extern int g_line;

Some files were not shown because too many files have changed in this diff Show more