internal static PIDL FromUnknown(IntPtr unknown) { IntPtr pidl; var code = ShellNativeMethods.SHGetIDListFromObject(unknown, out pidl); return(HRESULT.Succeeded(code) ? new PIDL(pidl) : Null); }
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); }
public void Free() { ShellNativeMethods.ILFree(this.Value); }