Launching Shell Links (LNKs) from WOW64

后端 未结 4 621
执念已碎
执念已碎 2021-01-14 13:33

Our 32-Bit application launches Windows LNK files (Shell Links) via ShellExecute. When it tries to \"launch\" a link to a 64-Bit binary (such as the \"Internet Explorer (64-

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-14 14:21

    Andrew: I gave it a shot, and the sysnative folder does not do anything that Wow64DisableWow64FsRedirection doesn't already do. The problem is that ShellExecute mistakenly assumes that the link is pointing to %programfiles(x86)%, when it is in fact pointing to %programfiles% (Even when there is no such file in %programfiles(x86)%).

    Opening 64bit programs already works perfectly fine. It's .lnk files pointing to the %programfiles% directory that are the problem.

提交回复
热议问题