Skip to content

Can't create ShellObjects from valid Guids!! #23

@TMS-Namespace

Description

@TMS-Namespace

By enumerating over contents of Control panel, WindowsAPICodePack gives the following strange parsingName for Fonts folder in it:
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\Fonts"
It is strange because, If we check for Guid of KnownFolder "fonts", we get (both are generated on same device and windows version):
fd228cb7-ae11-4ae3-864c-16f3910ab8fe
presumably, the difference is because the first one in control panel, and second one is simply a direct folder "c:\Windwos\fonts".

However, the problem is that, if I will save the first parsingName, to reuse it in future by creating ShellObject from it, by using FromParsingName method, it throws an exception that it can't create shell item! even if I will join that parsingName with control panel Guid (to indicate the parent), even if I will put the prefix "shell:" to it (as it been pointed out here https://stackoverflow.com/questions/45357708/shellexecuteex-guid-path).

If the issue was only with font folder, it was ok, but the same issue is happening when enumerating the available adapters in KnownFolder "Connections", parsingName gives me a nice Guids for those adapters, that even equal to the one windows generating if I will ask it to create a shortcut for that adapter! but ShellObject still throws an exception if I will try to parse that adapter guid, also with indicating the parent or that prefix.

Any ideas how to fix this? or I am doing something wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions