标签:code sum tla kernel32 判断 lld process lang stat
/// <summary>
/// 设置Dlls的搜索路径
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern bool SetDllDirectory(string path);
// ...
var path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
path = Path.Combine(path, Environment.Is64BitProcess ? "dlls64" : "dlls32");
SetDllDirectory(path);
// ...
标签:code sum tla kernel32 判断 lld process lang stat
原文地址:https://www.cnblogs.com/linxmouse/p/12712811.html