Checking for existence of Windows API Functions

前端 未结 8 1857
鱼传尺愫
鱼传尺愫 2021-01-05 14:17

I am new to Windows programming and I\'m trying to discover the best way to check for the existence of Windows Shell API functions. I want to use some of the new taskbar fea

8条回答
  •  没有蜡笔的小新
    2021-01-05 15:01

    I believe MSDN is your best bet for this. Every MSDN page for a function's documentation contains a section in the end which states that which version of Windows support this function.

    As an example, Check the doumentation of GetModuleHandle. This contains a section named Requirements under which there is a field Minimum Supported Client and Minimum Supported Server.

    However, if you want to check for the existence of functions dynamically, then you can do this through LoadLibrary and GetProcAddress.

提交回复
热议问题