blob: b00157cb5aaddfcdad56b24c7feec078845e9ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Aktywator
{
static class Common
{
public static string ProgramFilesx86()
{
if (8 == IntPtr.Size
|| (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432"))))
{
return Environment.GetEnvironmentVariable("ProgramFiles(x86)");
}
return Environment.GetEnvironmentVariable("ProgramFiles");
}
public static string bezOgonkow(string text)
{
return Encoding.ASCII.GetString(Encoding.GetEncoding(1251).GetBytes(text));
}
}
}
|