示例#1
0
        internal static PIDL FromUnknown(IntPtr unknown)
        {
            IntPtr pidl;
            var    code = ShellNativeMethods.SHGetIDListFromObject(unknown, out pidl);

            return(HRESULT.Succeeded(code) ? new PIDL(pidl) : Null);
        }
示例#2
0
        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);
        }
示例#3
0
 public void Free()
 {
     ShellNativeMethods.ILFree(this.Value);
 }