Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Criteo-dotnet-blog/9a0e5a22690f7119239557566dc8daac to your computer and use it in GitHub Desktop.
Save Criteo-dotnet-blog/9a0e5a22690f7119239557566dc8daac to your computer and use it in GitHub Desktop.
StringBuilder stringBuilder2 = new StringBuilder(1024);
if (Microsoft.Win32.NativeMethods.GetModuleFileNameEx(
  safeProcessHandle, 
  new HandleRef(null, handle), 
  stringBuilder2, 
  stringBuilder2.Capacity * 2
 ) == 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment