SHParseDisplayName() private method

private SHParseDisplayName ( [ pszName, IntPtr pbc, IntPtr &ppidl, ShellFileGetAttributesOptions sfgaoIn, ShellFileGetAttributesOptions &psfgaoOut ) : int
pszName [
pbc System.IntPtr
ppidl System.IntPtr
sfgaoIn ShellFileGetAttributesOptions
psfgaoOut ShellFileGetAttributesOptions
return int
コード例 #1
0
        internal static IntPtr PidlFromParsingName(string name)
        {
            var retCode = ShellNativeMethods.SHParseDisplayName(
                name, IntPtr.Zero, out var pidl, 0,
                out var sfgao);

            return(CoreErrorHelper.Succeeded(retCode) ? pidl : IntPtr.Zero);
        }
コード例 #2
0
        internal static IntPtr PidlFromParsingName(string name)
        {
            IntPtr pidl;

            ShellNativeMethods.ShellFileGetAttributesOptions sfgao;
            int retCode = ShellNativeMethods.SHParseDisplayName(
                name, IntPtr.Zero, out pidl, (ShellNativeMethods.ShellFileGetAttributesOptions) 0,
                out sfgao);

            return(CoreErrorHelper.Succeeded(retCode) ? pidl : IntPtr.Zero);
        }