mirror of
https://github.com/reactos/reactos
synced 2025-10-06 08:22:58 +02:00
Display available file systems in usage screen
svn path=/trunk/; revision=24253
This commit is contained in:
@@ -14,7 +14,7 @@ STRINGTABLE DISCARDABLE
|
|||||||
|
|
||||||
STRING_HELP, "Usage: %S drive: [-FS:file-system] [-V:label] [-Q] [-A:size] [-C]\n\n\
|
STRING_HELP, "Usage: %S drive: [-FS:file-system] [-V:label] [-Q] [-A:size] [-C]\n\n\
|
||||||
[Datentr<74>ger:] Legt das Laufwerk zum Formatieren fest.\n\
|
[Datentr<74>ger:] Legt das Laufwerk zum Formatieren fest.\n\
|
||||||
-FS:file-system Legt das Dateisystem fest (z.B. FAT).\n\
|
-FS:file-system Legt das Dateisystem fest (%s).\n\
|
||||||
-V:label Legt den Datentraegernamen fest.\n\
|
-V:label Legt den Datentraegernamen fest.\n\
|
||||||
-Q Fuehre Schnellformatierung durch.\n\
|
-Q Fuehre Schnellformatierung durch.\n\
|
||||||
-A:size Ueberschreibe Anweisung fuer Standartblockgroesse. Es wird dringend\n\
|
-A:size Ueberschreibe Anweisung fuer Standartblockgroesse. Es wird dringend\n\
|
||||||
|
@@ -9,7 +9,7 @@ STRINGTABLE DISCARDABLE
|
|||||||
{
|
{
|
||||||
STRING_HELP, "Usage: %S drive: [-FS:file-system] [-V:label] [-Q] [-A:size] [-C]\n\n\
|
STRING_HELP, "Usage: %S drive: [-FS:file-system] [-V:label] [-Q] [-A:size] [-C]\n\n\
|
||||||
[drive:] Specifies the drive to format.\n\
|
[drive:] Specifies the drive to format.\n\
|
||||||
-FS:file-system Specifies the type of file system (e.g. FAT).\n\
|
-FS:file-system Specifies the type of file system (%s).\n\
|
||||||
-V:label Specifies volume label.\n\
|
-V:label Specifies volume label.\n\
|
||||||
-Q Performs a quick format.\n\
|
-Q Performs a quick format.\n\
|
||||||
-A:size Overrides the default allocation unit size. Default settings\n\
|
-A:size Overrides the default allocation unit size. Default settings\n\
|
||||||
|
@@ -12,11 +12,11 @@ LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
|
|||||||
STRINGTABLE DISCARDABLE
|
STRINGTABLE DISCARDABLE
|
||||||
{
|
{
|
||||||
STRING_HELP, "Utilisation : %S disque: [-FS:syst<73>me de fichier] [-V:nom] [-Q] [-A:taille] [-C]\n\n\
|
STRING_HELP, "Utilisation : %S disque: [-FS:syst<73>me de fichier] [-V:nom] [-Q] [-A:taille] [-C]\n\n\
|
||||||
[disque:] Indique le disque <20> formater.\n\
|
[disque:] Indique le disque <20> formater.\n\
|
||||||
-FS:syst<73>me de fichier Indique le type de syst<73>me de fichier (p.e. FAT).\n\
|
-FS:syst<73>me de fichier Indique le type de syst<73>me de fichier (%s).\n\
|
||||||
-V:nom D<>termine le nom du disque.\n\
|
-V:nom D<EFBFBD>termine le nom du disque.\n\
|
||||||
-Q Effectue un formatage rapide.\n\
|
-Q Effectue un formatage rapide.\n\
|
||||||
-A:taille Force une taille pour les unit<69>s d'allocations. Les valeurs par d<>faut\n\
|
-A:taille Force une taille pour les unit<69>s d'allocations. Les valeurs par d<>faut\n\
|
||||||
sont fortement recommand<6E>es pour une utilisation courante\n\
|
sont fortement recommand<6E>es pour une utilisation courante\n\
|
||||||
NTFS peut utiliser 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K.\n\
|
NTFS peut utiliser 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K.\n\
|
||||||
FAT peut utiliser 8192, 16K, 32K, 64K, 128K, 256K.\n\
|
FAT peut utiliser 8192, 16K, 32K, 64K, 128K, 256K.\n\
|
||||||
|
@@ -10,7 +10,7 @@ STRINGTABLE DISCARDABLE
|
|||||||
{
|
{
|
||||||
STRING_HELP, "Haszn<7A>lat: %S k<>tet: [-FS:<3A>llom<6F>nyrendszer] [-V:c<>mke] [-Q] [-A:m<>ret] [-C]\n\n\
|
STRING_HELP, "Haszn<7A>lat: %S k<>tet: [-FS:<3A>llom<6F>nyrendszer] [-V:c<>mke] [-Q] [-A:m<>ret] [-C]\n\n\
|
||||||
[k<>tet:] A meghajt<6A>bet<65>jelet adja meg (kett<74>sponttal a v<>g<EFBFBD>n).\n\
|
[k<>tet:] A meghajt<6A>bet<65>jelet adja meg (kett<74>sponttal a v<>g<EFBFBD>n).\n\
|
||||||
-FS:<3A>llom<6F>nyrendszer Az <20>llom<6F>nyrendszer t<>pus<75>t adja meg (pl.: FAT).\n\
|
-FS:<3A>llom<6F>nyrendszer Az <20>llom<6F>nyrendszer t<>pus<75>t adja meg (%s).\n\
|
||||||
-V:c<>mke A K<>tetc<74>mke neve.\n\
|
-V:c<>mke A K<>tetc<74>mke neve.\n\
|
||||||
-Q Gyorsform<72>z<EFBFBD>st hajt v<>gre.\n\
|
-Q Gyorsform<72>z<EFBFBD>st hajt v<>gre.\n\
|
||||||
-A:m<>ret Fel<65>lb<6C>r<EFBFBD>lja az alap<61>rtelmezett szektorcsoport-\n\
|
-A:m<>ret Fel<65>lb<6C>r<EFBFBD>lja az alap<61>rtelmezett szektorcsoport-\n\
|
||||||
|
@@ -10,7 +10,7 @@ STRINGTABLE DISCARDABLE
|
|||||||
STRING_HELP, "<22>g<EFBFBD>p<EFBFBD>@: %S <20>h<EFBFBD><68><EFBFBD>C<EFBFBD>u: [-FS:<3A>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65>] [-V:<3A><><EFBFBD>x<EFBFBD><78>] [-Q] [-A:<3A>T<EFBFBD>C<EFBFBD>Y] [-C]\n\n\
|
STRING_HELP, "<22>g<EFBFBD>p<EFBFBD>@: %S <20>h<EFBFBD><68><EFBFBD>C<EFBFBD>u: [-FS:<3A>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65>] [-V:<3A><><EFBFBD>x<EFBFBD><78>] [-Q] [-A:<3A>T<EFBFBD>C<EFBFBD>Y] [-C]\n\n\
|
||||||
[<5B>h<EFBFBD><68><EFBFBD>C<EFBFBD>u:] <20>t<EFBFBD>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B\n\
|
[<5B>h<EFBFBD><68><EFBFBD>C<EFBFBD>u:] <20>t<EFBFBD>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B\n\
|
||||||
-FS:<3A>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65>\n\
|
-FS:<3A>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65>\n\
|
||||||
<20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65><EFBFBD>̎<EFBFBD><CC8E>ނ<EFBFBD><DE82>w<EFBFBD>肵<EFBFBD>܂<EFBFBD> (<EFBFBD><EFBFBD>: FAT)<29>B\n\
|
<20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65><EFBFBD>̎<EFBFBD><CC8E>ނ<EFBFBD><DE82>w<EFBFBD>肵<EFBFBD>܂<EFBFBD> (%s)<29>B\n\
|
||||||
-V:<3A><><EFBFBD>x<EFBFBD><78> <20>{<7B><><EFBFBD><EFBFBD><EFBFBD>[<5B><> <20><><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B\n\
|
-V:<3A><><EFBFBD>x<EFBFBD><78> <20>{<7B><><EFBFBD><EFBFBD><EFBFBD>[<5B><> <20><><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B\n\
|
||||||
-Q <20>N<EFBFBD>C<EFBFBD>b<EFBFBD>N <20>t<EFBFBD>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B\n\
|
-Q <20>N<EFBFBD>C<EFBFBD>b<EFBFBD>N <20>t<EFBFBD>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B\n\
|
||||||
-A:<3A>T<EFBFBD>C<EFBFBD>Y <20>K<EFBFBD><4B><EFBFBD>̃A<CC83><41><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD> <20><><EFBFBD>j<EFBFBD>b<EFBFBD>g <20>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><EFBFBD>㏑<EFBFBD><E38F91><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
|
-A:<3A>T<EFBFBD>C<EFBFBD>Y <20>K<EFBFBD><4B><EFBFBD>̃A<CC83><41><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD> <20><><EFBFBD>j<EFBFBD>b<EFBFBD>g <20>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><EFBFBD>㏑<EFBFBD><E38F91><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
|
||||||
|
@@ -9,7 +9,7 @@ STRINGTABLE DISCARDABLE
|
|||||||
{
|
{
|
||||||
STRING_HELP, "bruk: %S stasjon: [-FS:fil-system] [-V:merke] [-Q] [-A:st<73>rrelse] [-C]\n\n\
|
STRING_HELP, "bruk: %S stasjon: [-FS:fil-system] [-V:merke] [-Q] [-A:st<73>rrelse] [-C]\n\n\
|
||||||
[stasjon:] Spesifisere stasjon til formater.\n\
|
[stasjon:] Spesifisere stasjon til formater.\n\
|
||||||
-FS:file-system Spesifisere typen av fil system (f.eks. FAT).\n\
|
-FS:file-system Spesifisere typen av fil system (%s).\n\
|
||||||
-V:merke Spesifisere volum merke.\n\
|
-V:merke Spesifisere volum merke.\n\
|
||||||
-Q Fullf<6C>re en rask formatering.\n\
|
-Q Fullf<6C>re en rask formatering.\n\
|
||||||
-A:st<73>rrelse Dominerende standard fordeling enhet st<73>rrelse. Standard innstilling\n\
|
-A:st<73>rrelse Dominerende standard fordeling enhet st<73>rrelse. Standard innstilling\n\
|
||||||
|
@@ -69,21 +69,6 @@ static VOID PrintWin32Error( LPTSTR Message, DWORD ErrorCode )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Usage
|
|
||||||
//
|
|
||||||
// Tell the user how to use the program
|
|
||||||
//
|
|
||||||
//----------------------------------------------------------------------
|
|
||||||
static VOID Usage( LPTSTR ProgramName )
|
|
||||||
{
|
|
||||||
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
|
||||||
LoadString( GetModuleHandle(NULL), STRING_HELP, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
|
|
||||||
_tprintf(szMsg, ProgramName);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// ParseCommandLine
|
// ParseCommandLine
|
||||||
@@ -245,9 +230,61 @@ BOOLEAN LoadFMIFSEntryPoints()
|
|||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( !((void *) GetProcAddress( hFmifs,
|
||||||
|
"QueryAvailableFileSystemFormat" )) ) {
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Usage
|
||||||
|
//
|
||||||
|
// Tell the user how to use the program
|
||||||
|
//
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
static VOID Usage( LPTSTR ProgramName )
|
||||||
|
{
|
||||||
|
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||||
|
TCHAR szFormats[MAX_PATH];
|
||||||
|
#ifndef UNICODE
|
||||||
|
TCHAR szFormatA[MAX_PATH];
|
||||||
|
#endif
|
||||||
|
WCHAR szFormatW[MAX_PATH];
|
||||||
|
DWORD Index = 0;
|
||||||
|
BYTE dummy;
|
||||||
|
BOOLEAN lastestVersion;
|
||||||
|
|
||||||
|
LoadString( GetModuleHandle(NULL), STRING_HELP, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
|
||||||
|
if (!LoadFMIFSEntryPoints())
|
||||||
|
{
|
||||||
|
_tprintf(szMsg, ProgramName, "");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
szFormats[0] = 0;
|
||||||
|
while (QueryAvailableFileSystemFormat(Index++, szFormatW, &dummy, &dummy, &lastestVersion))
|
||||||
|
{
|
||||||
|
if (!lastestVersion)
|
||||||
|
continue;
|
||||||
|
if (szFormats[0])
|
||||||
|
_tcscat(szFormats, _T(", "));
|
||||||
|
#ifdef UNICODE
|
||||||
|
_tcscat(szFormats, szFormatW);
|
||||||
|
#else
|
||||||
|
if (0 != WideCharToMultiByte(CP_ACP, 0, szFormatW, -1, szFormatA, sizeof(szFormatA), NULL, NULL))
|
||||||
|
_tcscat(szFormats, szFormatA);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
_tprintf(szMsg, ProgramName, szFormats);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// WMain
|
// WMain
|
||||||
|
Reference in New Issue
Block a user