BExplorer.Shell.ShellView.ClearFolderIcon C# (CSharp) Method

ClearFolderIcon() public method

Removes the folder's icon
public ClearFolderIcon ( String wszPath ) : HResult
wszPath String ??
return HResult
    public HResult ClearFolderIcon(String wszPath) {
      var fcs = new Shell32.LPSHFOLDERCUSTOMSETTINGS() { dwMask = Shell32.FCSM_ICONFILE };
      fcs.dwSize = (UInt32)Marshal.SizeOf(fcs);

      HResult hr = Shell32.SHGetSetFolderCustomSettings(ref fcs, wszPath, Shell32.FCS_FORCEWRITE);
      if (hr == HResult.S_OK) {
        // Update the icon cache
        this.UpdateIconCacheForFolder(wszPath.Replace(@"\\", @"\"));
      }

      this.RefreshItem(this._SelectedIndexes[0]);
      return hr;
    }
ShellView