Esempio n. 1
0
        public static string GetPath(IntPtr pIDL)
        {
            if (!(pIDL != IntPtr.Zero))
            {
                return(string.Empty);
            }
            StringBuilder pszPath = new StringBuilder(260);

            if (PInvoke.SHGetPathFromIDList(pIDL, pszPath))
            {
                return(pszPath.ToString());
            }
            return(GetDisplayName(pIDL, false));
        }