示例#1
0
 public static void Initialize()
 {
     Library                  = Native.LoadLibrary("python27.dll");
     _verboseFlag             = Native.GetProcAddress(Library, "Py_VerboseFlag");
     _pyCompileStringFlagsOff = Utility.FindPattern("python27",
                                                    "55 8b ec 53 8b 5d 14 56 e8 ? ? ? ? 8b f0 85 f6 75 ? eb ? 85 db 74 ? f7 03 00 04 00 00 74 ? e8 ? ? ? ? 57 e8 ? ? ? ? 59");
     if (_pyCompileStringFlagsOff == 0)
     {
         Core.LogWarning(
             "Warning: couldn't find Py_CompileStringFlags function in python27 module. Outdated pattern?");
     }
     else
     {
         _pyCompileStringFlags = Utility.Magic.RegisterDelegate <PyCompileStringFlagsDel>(_pyCompileStringFlagsOff);
     }
 }
示例#2
0
文件: Python.cs 项目: yushiro/beliEVE
 public static void Initialize()
 {
     Library = Native.LoadLibrary("python27.dll");
     _verboseFlag = Native.GetProcAddress(Library, "Py_VerboseFlag");
     _pyCompileStringFlagsOff = Utility.FindPattern("python27",
                                                 "55 8b ec 53 8b 5d 14 56 e8 ? ? ? ? 8b f0 85 f6 75 ? eb ? 85 db 74 ? f7 03 00 04 00 00 74 ? e8 ? ? ? ? 57 e8 ? ? ? ? 59");
     if (_pyCompileStringFlagsOff == 0)
     {
         Core.LogWarning(
             "Warning: couldn't find Py_CompileStringFlags function in python27 module. Outdated pattern?");
     }
     else
         _pyCompileStringFlags = Utility.Magic.RegisterDelegate<PyCompileStringFlagsDel>(_pyCompileStringFlagsOff);
 }