Reputation: 91865
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?
That said: does anyone have robust code that uses FileVersionInfo to check minimum version info?
Upvotes: 0
Views: 504
Reputation: 179927
Wouldn't it be easier to import (but not call) a function that's only present in DbgHelp.DLL version 6.9 and higher?
Upvotes: 0
Reputation: 74652
P/Invoke a call to LoadLibrary with the explicit path of the DBGHELP that you want, that way when you go to make your actual P/Invoke call, the DLL will already be loaded.
Upvotes: 1