I've got some P/Invoke code that invokes DBGHELP.DLL. I'll add the signatures to pinvoke.net later.
The version of DBGHELP.DLL that ships with Windows 2003 is too old, and my code requires the version of DBGHELP.DLL that shipped with "Debugging Tools for Windows" version 6.9.
How do I do one of the following?
- Ensure that DllImport requires a minimum version.
- Find out which DLL will be loaded and then get its version number. I'll need to use FileVersionInfo, but how do I find out the search order that P/Invoke will use?
That said: does anyone have robust code that uses FileVersionInfo to check minimum version info?