Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported CLSID Exception for 59031A47-3F72-44A7-89C5-5595FE6B30EE when trying to resolve lnk #36

Open
Griefed opened this issue Apr 11, 2023 · 3 comments

Comments

@Griefed
Copy link

Griefed commented Apr 11, 2023

Heya DmitriiShamrikov,

I've recently stumbled upon an UnsupportedCLSIDException for 59031A47-3F72-44A7-89C5-5595FE6B30EE, when trying to resolve a lnk from a users Desktop pointing towards folders or files on another drive.

My impression was that a Windows lnk could be resolved to its actual target by calling

new ShellLink(file).resolveTarget()

where file represents the lnk we want to resolve.

If I'm doing this the wrong way, I'd appreciate a pointer in the right direction.

Thanks in advance!

Stay safe and stay awesome.
Cheers,
Griefed

@Griefed
Copy link
Author

Griefed commented Apr 11, 2023

It appears that 59031A47-3F72-44A7-89C5-5595FE6B30EE points towards the user profile, at least per

  1. tenforums and
  2. elevenforum

and another CLSID DFD50261-23A3-0253-0400-000000004F02 seems to point towards the users Documents-folder.

@DmitriiShamrikov
Copy link
Owner

DmitriiShamrikov commented Apr 11, 2023

Well, these two guids are not in the list of supported guids, hence the exception. You can try registering it yourself using Registry.registerClsid() function and see if it works for you. You don't have to modify the lib for that. Just call it somewhere in your program beforehands.

I'm going to test them and possibly add them to the list if they work

@Griefed
Copy link
Author

Griefed commented Apr 12, 2023

Heya DmitriiShamrikov,

thanks man, much appreciated. I did end up using Registry.registerClsid() by implementing your library directly (unfortunately, Vatbub only has up to version 1.0.6.2, and I wanted the other fixes and improvements you implemented, too).

So far it seems to do the job. I can resolve links from my desktop again. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants