Skip to content

Commit

Permalink
Removed win7 only call
Browse files Browse the repository at this point in the history
  • Loading branch information
emist committed Aug 15, 2011
1 parent e2f9c89 commit f2d6427
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Syringe/Injector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,13 @@ public void InjectLibrary(string libPath)
throw new Win32Exception(Marshal.GetLastWin32Error());

// get address of loaded module - this doesn't work in x64, so just iterate module list to find injected module
/*
IntPtr hLibModule;// = IntPtr.Zero;
if (!Imports.GetExitCodeThread(hThread, out hLibModule))
throw new Win32Exception(Marshal.GetLastWin32Error());
if (hLibModule == IntPtr.Zero)
throw new Exception("Code executed properly, but unable to get an appropriate module handle, possible Win32Exception", new Win32Exception(Marshal.GetLastWin32Error()));
*/

// iterate modules in target process to find our newly injected module
ProcessModule modFound = null;
Expand Down

0 comments on commit f2d6427

Please sign in to comment.