Why do i get E_ACCESSDENIED when reading public shortcuts through Shell32?

前端 未结 1 592
感情败类
感情败类 2020-12-20 23:09

I\'m trying to read the targets of all desktop shortcuts in a C# 4 application. The shortcuts on a windows desktop can come from more that one location, depending on whether

相关标签:
1条回答
  • 2020-12-20 23:44

    Yes, you cannot get access to the .lnk file in that folder by default. You are creating a COM object that allows you to modify the .lnk properties. And that requires an administrator level account with UAC turned off.

    Yes, you can fix that with a manifest.

    0 讨论(0)
提交回复
热议问题