EaseFilter Demo Project
|
Utils.cs
Go to the documentation of this file.
32 // and will most likely (hopefully) be there for some time before MS decides to change this - again...
33 if (TryGeRegistryKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentMajorVersionNumber", out major))
38 // When the 'CurrentMajorVersionNumber' value is not present we fallback to reading the previous key used for this: 'CurrentVersion'
40 if (!TryGeRegistryKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", out version))
57 // and will most likely (hopefully) be there for some time before MS decides to change this - again...
58 if (TryGeRegistryKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentMinorVersionNumber",
64 // When the 'CurrentMinorVersionNumber' value is not present we fallback to reading the previous key used for this: 'CurrentVersion'
66 if (!TryGeRegistryKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", out version))
168 string lastError = "Copy platform dependent files 'FilterAPI.DLL' and 'EaseFlt.sys' to folder " + localPath + " got exception:" + ex.Message;
189 throw new ArgumentException(String.Format("The binary key cannot have an odd number of digits: {0}", hexString));
196 HexAsBytes[index] = byte.Parse(byteValue, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
256 Configuration configuration = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);
273 Configuration configuration = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);
288 System.Diagnostics.Debug.WriteLine(caller + " Time:" + DateTime.Now.ToLongTimeString() + ": " + message);
static void SaveAppSetting(string fileName, Dictionary< string, string > keyValues)
Definition: Utils.cs:252
static uint WinMinorVersion()
Returns the Windows minor version number for this computer.
Definition: Utils.cs:53
static string ByteArrayToHexStr(byte[] ba)
Definition: Utils.cs:174
static void LoadAppSetting(string fileName, ref Dictionary< string, string > keyValues)
Definition: Utils.cs:269
Definition: Utils.cs:26
static bool IsBase64String(string s)
Definition: Utils.cs:237
static byte [] ConvertHexStrToByteArray(string hexString)
Definition: Utils.cs:185
static void CopyOSPlatformDependentFiles()
Definition: Utils.cs:92
static byte [] GetKeyByPassPhrase(string pwStr)
Generate 32 bytes key array by pass phrase string
Definition: Utils.cs:207
static void ToDebugger(string message)
Definition: Utils.cs:284
Services Overview
Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.
Contact Us
You are welcome to contact us for salse or partnership.
Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com