Skip to content

Instantly share code, notes, and snippets.

@Criteo-dotnet-blog
Created November 13, 2018 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Criteo-dotnet-blog/de8cb108a47425d80af8400c44608010 to your computer and use it in GitHub Desktop.
Save Criteo-dotnet-blog/de8cb108a47425d80af8400c44608010 to your computer and use it in GitHub Desktop.
[DllImport("psapi.dll", BestFitMapping = false, CharSet = CharSet.Auto, SetLastError = true)]
private static extern int GetModuleFileNameEx(SafeProcessHandle processHandle, IntPtr moduleHandle, StringBuilder baseName, int size);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment