Discuss this help topic in CBFS Forum

CallbackFileSystem.SetIcon method


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CallbackFileSystem     See also    


Sets custom icon for the virtual disk


    procedure SetIcon( IconId : TCBString);
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    void SetIcon( const wchar_t * IconId);

[C++ (VCL)]
    void __fastcall SetIcon( const TCBString IconId);

[C++ (.NET)]
    void SetIcon( String* IconId);

    void SetIcon( string IconId)

    Sub SetIcon( ByVal IconId As String)

    void setIcon( String iconId)


  • IconId - ID of the previously installed .ico file, which should be set.


Use this function to set custom icon to be shown for the virtual disk in Explorer. The icon must be installed using InstallIcon method before it can be used.

Call from...

This method may be called only from outside of callback / event handlers and after successful call to CreateStorage().

See also

InstallIcon     ResetIcon     UninstallIcon    

Discuss this help topic in CBFS Forum