Exemplo n.º 1
0
 public static extern int SHParseDisplayName(
     [MarshalAs(UnmanagedType.LPWStr)] string pszName,
     IntPtr pbc,
     out IntPtr ppidl,
     ShellFileGetAttributesOptions sfgaoIn,
     out ShellFileGetAttributesOptions psfgaoOut
 );
        /// <summary>
        /// Initializes a new instance of the <see cref="FileInfo"/> structure.
        /// </summary>
        /// <param name="icon">The icon of the file represented by this structure.</param>
        /// <param name="iconIndex">The icon index of the retrieved icon.</param>
        /// <param name="attributes">The attributes of the file represented by this structure.</param>
        /// <param name="displayName">The display name of the file represented by this structure.</param>
        /// <param name="typeName">The type name of the file represented by this structure.</param>
        public FileInfo(Icon icon, int iconIndex, ShellFileGetAttributesOptions attributes, string displayName, string typeName)
        {
            Icon = icon;

            IconIndex = iconIndex;

            Attributes = attributes;

            DisplayName = displayName;

            TypeName = typeName;
        }
Exemplo n.º 3
0
 internal static extern HResult SHParseDisplayName(IntPtr pszName, IntPtr pbc, out IntPtr ppidl, ShellFileGetAttributesOptions sfgaoIn, ref ShellFileGetAttributesOptions psfgaoOut);
Exemplo n.º 4
0
 internal static extern HResult SHParseDisplayName([In][MarshalAs(UnmanagedType.LPWStr)] string pszName, [In] IntPtr pbc, out IntPtr ppidl, [In] ShellFileGetAttributesOptions sfgaoIn, out ShellFileGetAttributesOptions psfgaoOut);
Exemplo n.º 5
0
 internal static extern int SHParseDisplayName(
     [MarshalAs(UnmanagedType.LPWStr)] string pszName,
     IntPtr pbc,
     out IntPtr ppidl,
     ShellFileGetAttributesOptions sfgaoIn,
     out ShellFileGetAttributesOptions psfgaoOut
 );
Exemplo n.º 6
0
 public HResult GetAttributes(ShellItemAttributeOptions dwAttribFlags, ShellFileGetAttributesOptions sfgaoMask, out ShellFileGetAttributesOptions psfgaoAttribs)
 {
     throw new NotSupportedException();
 }