Exemple #1
0
        /// <summary>
        ///     Create a Native Capstone.
        /// </summary>
        static NativeCapstone()
        {
            OperatingSystem os  = Environment.OSVersion;
            PlatformID      pid = os.Platform;

            switch (pid)
            {
            case PlatformID.Win32NT:
            case PlatformID.Win32S:
            case PlatformID.Win32Windows:
            case PlatformID.WinCE:
                NativeCapstone.LoadLibrary();
                break;
            }
        }
Exemple #2
0
 /// <summary>
 ///     Create a Native Capstone.
 /// </summary>
 static NativeCapstone()
 {
     NativeCapstone.LoadLibrary();
 }