Esempio n. 1
0
        private int GetIconLocation(GILInFlags uFlags, out int piIndex, out GILOutFlags pwFlags)
        {
            //  We're always going to return by handle.
            //  This will cause the 'Extract' function to be called.
            pwFlags = GILOutFlags.GIL_NOTFILENAME;
            if (DontCacheIcons)
                pwFlags |= GILOutFlags.GIL_DONTCACHE;

            //  No need for an index.
            piIndex = 0;

            //  Return success.
            return WinError.S_OK;
        }
        private int GetIconLocation(GILInFlags uFlags, out int piIndex, out GILOutFlags pwFlags)
        {
            //  We're always going to return by handle.
            //  This will cause the 'Extract' function to be called.
            pwFlags = GILOutFlags.GIL_NOTFILENAME;
            if (DoNotCacheIcons)
            {
                pwFlags |= GILOutFlags.GIL_DONTCACHE;
            }

            //  No need for an index.
            piIndex = 0;

            //  Return success.
            return(WinError.S_OK);
        }
Esempio n. 3
0
        private int GetIconLocation(GILInFlags uFlags, out int piIndex, out GILOutFlags pwFlags)
        {
            //  DebugLog this key event.
            Log(string.Format("Getting icon location icon for {0}", SelectedItemPath));

            //  We're always going to return by handle.
            //  This will cause the 'Extract' function to be called.
            pwFlags = GILOutFlags.GIL_NOTFILENAME;
            if (DontCacheIcons)
                pwFlags |= GILOutFlags.GIL_DONTCACHE;

            //  No need for an index.
            piIndex = 0;

            //  Return success.
            return WinError.S_OK;
        }
        private int GetIconLocation(GILInFlags uFlags, out int piIndex, out GILOutFlags pwFlags)
        {
            //  DebugLog this key event.
            Log(string.Format("Getting icon location icon for {0}", SelectedItemPath));

            //  We're always going to return by handle.
            //  This will cause the 'Extract' function to be called.
            pwFlags = GILOutFlags.GIL_NOTFILENAME;
            if (DontCacheIcons)
            {
                pwFlags |= GILOutFlags.GIL_DONTCACHE;
            }

            //  No need for an index.
            piIndex = 0;

            //  Return success.
            return(WinError.S_OK);
        }
 /// <summary>
 /// Gets the location and index of an icon.
 /// </summary>
 /// <param name="uFlags">One or more of the following values. This parameter can also be NULL.</param>
 /// <param name="szIconFile">A pointer to a buffer that receives the icon location. The icon location is a null-terminated string that identifies the file that contains the icon.</param>
 /// <param name="cchMax">The size of the buffer, in characters, pointed to by pszIconFile.</param>
 /// <param name="piIndex">A pointer to an int that receives the index of the icon in the file pointed to by pszIconFile.</param>
 /// <param name="pwFlags">A pointer to a UINT value that receives zero or a combination of the following value</param>
 /// <returns>Returns S_OK if the function returned a valid location, or S_FALSE if the Shell should use a default icon. If the GIL_ASYNC flag is set in uFlags, the method can return E_PENDING to indicate that icon extraction will be time-consuming.</returns>
 int IExtractIconW.GetIconLocation(GILInFlags uFlags, StringBuilder szIconFile, int cchMax, out int piIndex, out GILOutFlags pwFlags)
 {
     return(GetIconLocation(uFlags, out piIndex, out pwFlags));
 }
Esempio n. 6
0
 int IExtractIconW.GetIconLocation(GILInFlags uFlags, StringBuilder szIconFile, int cchMax, out int piIndex, out GILOutFlags pwFlags)
 {
     return GetIconLocation(uFlags, out piIndex, out pwFlags);
 }