public static string LoadStringFromDLLByPath(string StringPath) { if (StringPath.StartsWith(@"@")) { string[] aPathDetails = StringPath.Split(','); string DllString = string.Empty; if (aPathDetails.Length == 2) { string sDLLPath = aPathDetails[0].Replace(@"@", ""); if (!File.Exists(Environment.ExpandEnvironmentVariables(sDLLPath))) { return(string.Empty); } StringLoader sl = new StringLoader(sDLLPath); try { DllString = sl.Load(Convert.ToInt32(aPathDetails[1].Replace("-", ""))); } catch (Exception e) { Debug.WriteLine("Could not extract String from DLL Path " + StringPath + ". Error:" + e.Message); DllString = string.Empty; } sl.Dispose(); return(DllString); } return(string.Empty); } return(StringPath); }
public override void Process(ExeDllParserData data) { WFState retval = new WFState(); try { retval.Value = WFState.WFStateFail; StringLoader sl = new StringLoader(data.DocumentToProcess); // string output = sl.Load(strId); sl.Dispose(); // Assembly assembly = Assembly.LoadFile(this.FileToProcess); // string[] resources = assembly.GetManifestResourceNames(); } catch (Exception) { } }
public override WFState Run() { WFState retval = new WFState(); try { retval.Value = WFState.WFStateFail; StringLoader sl = new StringLoader(this.FileToProcess); // string output = sl.Load(strId); sl.Dispose(); // Assembly assembly = Assembly.LoadFile(this.FileToProcess); // string[] resources = assembly.GetManifestResourceNames(); } catch (Exception) { } return retval; }
public override WFState Run() { WFState retval = new WFState(); try { retval.Value = WFState.WFStateFail; StringLoader sl = new StringLoader(this.FileToProcess); // string output = sl.Load(strId); sl.Dispose(); // Assembly assembly = Assembly.LoadFile(this.FileToProcess); // string[] resources = assembly.GetManifestResourceNames(); } catch (Exception) { } return(retval); }