public static PIDL FromParsingName(string parsingName) { IntPtr pidl; UInt32 sfgao; var code = ShellNativeMethods.SHParseDisplayName(parsingName, IntPtr.Zero, out pidl, 0, out sfgao); return(HRESULT.Succeeded(code) ? new PIDL(pidl) : Null); }