Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStorage.InstallIcon method (OS edition, Windows platform)

Filter:

Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

SolFSStorage     See also    

Overview

OPERATING SYSTEM EDITION FOR WINDOWS
Installs the ICO file for use as a custom icon for virtual disk

APPLICATION EDITION
Not applicable

Declaration

[Pascal]
    class procedure InstallIcon( IconPath : TSolFSString; IconId : TSolFSString; var RebootNeeded : boolean );
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageInstallIcon(PSolFSChar IconPath, PSolFSWideChar CabFileName, PSolFSWideChar PathToInstall, SolFSBool SupportPnP, SolFSLongWord ModulesToInstall, SolFSBool *RebootNeeded);

[C++ (Lib)]
    static void InstallIcon( const wchar_t * IconPath, const wchar_t * IconId, bool * RebootNeeded );

[C++ (VCL)]
    static void __fastcall InstallIcon( TSolFSString IconPath, TSolFSString IconId, bool & RebootNeeded );

[C++ (.NET)]
    static void InstallIcon( String* IconPath, String* IconId, bool & RebootNeeded);

[C#]
    static void InstallIcon( String IconPath, String IconId, ref bool RebootNeeded)

[VB.NET]
    Shared Sub InstallIcon( ByVal IconPath As String, ByVal IconId As String, ByRef RebootNeeded As Boolean)

[Java]
    not applicable

Parameters

  • IconPath - Fully qualified (with path) name of the .ico file, which will be used as an icon.
  • IconId - Icon identifier, used for various operations with this icon.
  • RebootNeeded - On return indicates if the system needs to be restarted before the icon can be used.

Description

Use this function to install the icon (.ICO) file which will then be used in Explorer as a custom icon for the virtual disk. Be sure to call Initialize method before calling InstallIcon.

Call from...

This method may be called only from outside of callback / event handlers.

See also

IconInstalled     Initialize     ResetIcon     SetIcon     UninstallIcon    

Back to top