Why msvbvm60.dll can't be loaded in Windows 11?
I have tried to use the the library in my code project by Win API call Declare Function VarPtr Lib "msvbvm60.dll" (ByVal ptr As LongPtr) As LongPtr without success. The dll won't be loaded. The file is located in C:\Windows\SysWOW64 folder and the .dll and its typelib can also be found from the Windows registry.
EDIT:
I found the reason for this issue. It's about ASR (Attack Surface Reduction) rules set by Windows Defender.
Microsoft has included this also to Windows 10 with its latest feature update sometimes in the summer of 2024.
It blocks, among other things, using of Office apps creating executable content, obfuscated JS/VBS/PS macros by default and so on.
These individual rules can be worked around by Group Policy Manager settings.