I have following problem:
My program should decide at runtime to load an function (in this case GetExtendedTcpTable()) or not, because the method is not available in Windows 2000!? (can't start the software only in Windows 2000)
Thank you for your help!
greets leon22
You didn't quite specify your question, but I suppose that you want to load the function dynamically based on the OS version.
To determine the OS version, you can use
GetVersionEx
. To load a function dynamically, first useLoadLibrary
to retrieve the module handle of its DLL, and then useGetProcAddress
to retrieve a function pointer to the function. You will need to cast that function pointer to the correct prototype.