It's easier for you to see it yourself. Powershell .ps1 file.
Языковая локализация.
Из комментария @PashaPash "там кроме локализации много чего из System лежит."
Скорее всего так и есть, так как многие строки при работе этого кода пропускаются как пустые. Я полагаю, что возможно это бинарники локализации. Точного ответа у меня в данный момент нет.
$assemblies = ('mscorlib.dll')
$code = @'
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true, BestFitMapping = false, ThrowOnUnmappableChar = true)]
internal static extern IntPtr LoadLibrary(string lpLibFileName);
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true, BestFitMapping = false, ThrowOnUnmappableChar = true)]
internal static extern int LoadString(IntPtr hInstance, uint wID, StringBuilder lpBuffer, int nBufferMax);
public static string GetLocalizedPinToStartVerb(uint actionIndex)
{
int MAX_PATH = 255;
StringBuilder szPinToStartLocalized = new StringBuilder(MAX_PATH);
IntPtr hShell32 = LoadLibrary("Shell32.dll");
LoadString(hShell32, (uint)actionIndex, szPinToStartLocalized, MAX_PATH);
return szPinToStartLocalized.ToString();
}
'@
Add-Type -MemberDefinition $code `
-ReferencedAssemblies $assemblies `
-Namespace Px `
-UsingNamespace 'System.Text' `
-Name Helper `
-ErrorAction stop
cls
$count=''
for ($i=0;$i -lt 1000000;$i++){
$localized=[Px.Helper]::GetLocalizedPinToStartVerb($i)
if($localized -ne ''){
"$i $localized"
if($count -eq ''){$count=$localized;}
elseif($count -eq $localized){"$count - :) it must be end";break}
}
}
mscorlib.dll
иSystem.Core.dll
..."