Author: dchapyshev
Date: Wed Dec 19 11:54:15 2007
New Revision: 31316
URL:
http://svn.reactos.org/svn/reactos?rev=31316&view=rev
Log:
- Functions for definition BIOS date and version, Domain are added
Modified:
trunk/rosapps/sysutils/systeminfo/lang/de-DE.rc
trunk/rosapps/sysutils/systeminfo/lang/en-US.rc
trunk/rosapps/sysutils/systeminfo/lang/fr-FR.rc
trunk/rosapps/sysutils/systeminfo/resource.h
trunk/rosapps/sysutils/systeminfo/systeminfo.c
Modified: trunk/rosapps/sysutils/systeminfo/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/sysutils/systeminfo/lang/d…
==============================================================================
--- trunk/rosapps/sysutils/systeminfo/lang/de-DE.rc (original)
+++ trunk/rosapps/sysutils/systeminfo/lang/de-DE.rc Wed Dec 19 11:54:15 2007
@@ -1,7 +1,7 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
-{
+BEGIN
IDS_USAGE, "SYSTEMINFO [/S System [/U Benutzername [/P [Passwort]]]] [/FO Format]
[/NH]\n\n\
Beschreibung:\n\
@@ -58,5 +58,9 @@
IDS_HOST_NAME, "Domäne: %s\n"
IDS_PAGEFILE_LOC, "Auslagerungsdateipfad(e) %s"
IDS_TIME_ZONE, "Zeitzone: %s\n"
+IDS_DOMINE, "Domain: %s\n"
+IDS_BIOS_DATE, "BIOS Date: %s\n"
+IDS_BIOS_VERSION, "BIOS Version: %s\n"
+IDS_NETWORK_CARDS, "Network Card(s) %u Installed.\n"
-}
+END
Modified: trunk/rosapps/sysutils/systeminfo/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/sysutils/systeminfo/lang/e…
==============================================================================
--- trunk/rosapps/sysutils/systeminfo/lang/en-US.rc (original)
+++ trunk/rosapps/sysutils/systeminfo/lang/en-US.rc Wed Dec 19 11:54:15 2007
@@ -1,7 +1,7 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE DISCARDABLE
-{
+BEGIN
IDS_USAGE, "SYSTEMINFO [/S system [/U username [/P [password]]]] [/FO format]
[/NH]\n\n\
Description:\n\
@@ -54,7 +54,11 @@
IDS_VIRT_MEM_AVAIL, "Virtual Memory: Available: %ld MB (%ld KB)\n"
IDS_VIRT_MEM_INUSE, "Virtual Memory: In Use: %ld MB (%ld KB)\n"
IDS_HOST_NAME, "Host Name: %s\n"
-IDS_PAGEFILE_LOC, "Page File Location(s) %s"
+IDS_PAGEFILE_LOC, "Page File Location(s) %s\n"
IDS_TIME_ZONE, "Time zone: %s\n"
+IDS_DOMINE, "Domain: %s\n"
+IDS_BIOS_DATE, "BIOS Date: %s\n"
+IDS_BIOS_VERSION, "BIOS Version: %s\n"
+IDS_NETWORK_CARDS, "Network Card(s) %u Installed.\n"
-}
+END
Modified: trunk/rosapps/sysutils/systeminfo/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/sysutils/systeminfo/lang/f…
==============================================================================
--- trunk/rosapps/sysutils/systeminfo/lang/fr-FR.rc (original)
+++ trunk/rosapps/sysutils/systeminfo/lang/fr-FR.rc Wed Dec 19 11:54:15 2007
@@ -1,9 +1,9 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
-{
+BEGIN
-IDS_USAGE, "SYSTEMINFO [/S système [/U utilisateur [/P [motdepasse]]]] [/FO format]
[/NH]\n\n\
+IDS_USAGE "SYSTEMINFO [/S système [/U utilisateur [/P [motdepasse]]]] [/FO format]
[/NH]\n\n\
Description:\n\
Cet outil en ligne de commande permet à un administrateur d'effectuer une requête
sur les informations\n\
basiques de la configuration du système.\n\n\
@@ -56,5 +56,9 @@
IDS_HOST_NAME, "Nom d'hôte: %s\n"
IDS_PAGEFILE_LOC, "Emplacement(s) des fichiers d'échange %s"
IDS_TIME_ZONE, "Fuseau horaire: %s\n"
+IDS_DOMINE, "Domain: %s\n"
+IDS_BIOS_DATE, "BIOS Date: %s\n"
+IDS_BIOS_VERSION, "BIOS Version: %s\n"
+IDS_NETWORK_CARDS, "Network Card(s) %u Installed.\n"
-}
+END
Modified: trunk/rosapps/sysutils/systeminfo/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/sysutils/systeminfo/resour…
==============================================================================
--- trunk/rosapps/sysutils/systeminfo/resource.h (original)
+++ trunk/rosapps/sysutils/systeminfo/resource.h Wed Dec 19 11:54:15 2007
@@ -27,3 +27,7 @@
#define IDS_HOST_NAME 124
#define IDS_PAGEFILE_LOC 125
#define IDS_TIME_ZONE 126
+#define IDS_DOMINE 127
+#define IDS_BIOS_DATE 128
+#define IDS_BIOS_VERSION 129
+#define IDS_NETWORK_CARDS 130
Modified: trunk/rosapps/sysutils/systeminfo/systeminfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/sysutils/systeminfo/system…
==============================================================================
--- trunk/rosapps/sysutils/systeminfo/systeminfo.c (original)
+++ trunk/rosapps/sysutils/systeminfo/systeminfo.c Wed Dec 19 11:54:15 2007
@@ -220,6 +220,18 @@
}
//getting BIOS Version
+ if (GetRegistryValue(HKEY_LOCAL_MACHINE,
+ TEXT("HARDWARE\\DESCRIPTION\\System"),
+ TEXT("SystemBiosVersion"),
+ Buf))
+ if(GetOemStrings(IDS_BIOS_VERSION,Msg)) fprintf(stderr,Msg,Buf);
+
+ //gettings BIOS date
+ if (GetRegistryValue(HKEY_LOCAL_MACHINE,
+ TEXT("HARDWARE\\DESCRIPTION\\System"),
+ TEXT("SystemBiosDate"),
+ Buf))
+ if(GetOemStrings(IDS_BIOS_DATE,Msg)) fprintf(stderr,Msg,Buf);
//getting ReactOS Directory
if(!GetWindowsDirectory(Buf,BUFFER_SIZE)) printf("Error getting:
GetWindowsDirectory");
@@ -327,11 +339,19 @@
}
//getting Domain
+ if (GetRegistryValue(HKEY_LOCAL_MACHINE,
+ TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon"),
+ TEXT("CachePrimaryDomain"),
+ Buf))
+ if(GetOemStrings(IDS_DOMINE,Msg)) fprintf(stderr,Msg,Buf);
//getting Logon Server
//getting NetWork Card(s)
-
+ if(GetOemStrings(IDS_NETWORK_CARDS,Msg))
+ {
+
+ }
}
/* Main program */