Restore calls to SymInitialize and SymCleanup#105
Conversation
| IntPtr buffer = Marshal.AllocHGlobal(rawsize); | ||
| Marshal.StructureToPtr(guid, buffer, false); | ||
| bool success = SafeNativeMethods.SymFindFileInPath(IntPtr.Zero, symPath, pdbFilename, buffer, pdbAge, 0, 8, outPath, IntPtr.Zero, IntPtr.Zero); | ||
| bool success = SafeNativeMethods.SymFindFileInPath((IntPtr)(-1), null, pdbFilename, buffer, pdbAge, 0, 8, outPath, IntPtr.Zero, IntPtr.Zero); |
Check notice
Code scanning / CodeQL
Calls to unmanaged code
| var retval = new List<string>(); | ||
| Contract.Requires(null != syms); | ||
| Contract.Requires(null != parent); | ||
| if (!SafeNativeMethods.SymInitialize((IntPtr)(-1), symPath, false)) return retval; |
Check notice
Code scanning / CodeQL
Calls to unmanaged code
| progress++; | ||
| parent.PercentComplete = (int)((double)progress / syms.Count * 100.0); | ||
| } | ||
| SafeNativeMethods.SymCleanup((IntPtr)(-1)); |
Check notice
Code scanning / CodeQL
Calls to unmanaged code
| private extern static bool ReleaseActCtx(IntPtr hActCtx); | ||
| [DllImport("Kernel32.dll")] private extern static IntPtr CreateActCtx(ref ACTCTX actctx); | ||
| [DllImport("Kernel32.dll")] private extern static bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie); | ||
| [DllImport("Kernel32.dll")] private extern static bool DeactivateActCtx(uint dwFlags, IntPtr lpCookie); |
Check notice
Code scanning / CodeQL
Unmanaged code
| [DllImport("Kernel32.dll")] private extern static IntPtr CreateActCtx(ref ACTCTX actctx); | ||
| [DllImport("Kernel32.dll")] private extern static bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie); | ||
| [DllImport("Kernel32.dll")] private extern static bool DeactivateActCtx(uint dwFlags, IntPtr lpCookie); | ||
| [DllImport("Kernel32.dll")] private extern static bool ReleaseActCtx(IntPtr hActCtx); |
Check notice
Code scanning / CodeQL
Unmanaged code
| [MarshalAs(UnmanagedType.LPWStr)] string SearchPath, [MarshalAs(UnmanagedType.LPWStr)] string FileName, IntPtr id, | ||
| Int32 two, Int32 three, Int32 flags, [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder filePath, IntPtr callback, IntPtr context); | ||
|
|
||
| [DllImport("dbghelp.dll")] public static extern bool SymCleanup(IntPtr hProcess); |
Check notice
Code scanning / CodeQL
Unmanaged code
|
|
||
| [DllImport("dbghelp.dll")] public static extern bool SymCleanup(IntPtr hProcess); | ||
|
|
||
| [DllImport("dbghelp.dll", CharSet = CharSet.Unicode)] public static extern bool SymInitialize(IntPtr hProcess, [MarshalAs(UnmanagedType.LPWStr)] string UserSearchPath, bool fInvadeProcess); |
Check notice
Code scanning / CodeQL
Unmanaged code
| private extern static bool DeactivateActCtx(uint dwFlags, IntPtr lpCookie); | ||
| [DllImport("Kernel32.dll")] | ||
| private extern static bool ReleaseActCtx(IntPtr hActCtx); | ||
| [DllImport("Kernel32.dll")] private extern static IntPtr CreateActCtx(ref ACTCTX actctx); |
Check notice
Code scanning / CodeQL
Unmanaged code
| [DllImport("Kernel32.dll")] | ||
| private extern static bool ReleaseActCtx(IntPtr hActCtx); | ||
| [DllImport("Kernel32.dll")] private extern static IntPtr CreateActCtx(ref ACTCTX actctx); | ||
| [DllImport("Kernel32.dll")] private extern static bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie); |
Check notice
Code scanning / CodeQL
Unmanaged code
| [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder filePath, | ||
| IntPtr callback, | ||
| IntPtr context); | ||
| [DllImport("dbghelp.dll", CharSet = CharSet.Unicode)] public static extern bool SymFindFileInPath(IntPtr hProcess, |
Check notice
Code scanning / CodeQL
Unmanaged code
No description provided.