Current version 2.04.98 supports 1238 games, among them are Heroes of Might & Magic II., III. If you have original from Ubisoft or 3DO, try to use DxWnd. Albeit older they should still work under current Windows just with “Compatibility” settings. The same is true for CZ or PL localised versions from CD Projekt. You should install it on drive C: and run.
This is then installed to separate folder named “Heroes of Might and Magic 2 (Win)”.
If you get Heroes II Gold from the GoG.com store, you have an option to add also Windows version (among other goodies), check “More” → “Backup & Goodies” → Install Win version. Some of them can be supressed from “Compatibility Settings” on the Properties page. There could be more, like core affinity – where just one core is supported or graphic driver issues related to OpenGL or fullscreen also just merely Windows ones. There are two reasons for that, first is huge advance in DirectX, second is usually related to CD check methods which are not compatible up to this day. If you would like to play older games under Windows 10 and also Windows 8(.1) you often need to reach for some wrapper.