Discuss this help topic in CBFS Forum

CbFsFileInfo class


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


The class contains various information about the open file or directory.


    TCbFsFileInfo = class
      property UserContext : Pointer;
      property FileName : WideString;
      property Volume : TCallbackFileSystem;

[C++ (Lib)]
    class CbFsFileInfo
        void* get_UserContext();
        void set_UserContext(void* Value);
        DWORD get_FileName(LPTSTR OutBuf);
        void set_FileName(LPCTSTR Value);
        CallbackFileSystem* get_Volume(void);

[C++ (VCL)]
    class TCbFsFileInfo
      __property void* UserContext;
      __property WideString FileName;
      __property CallbackFileSystem^ Volume;

[C++ (.NET)]
    ref class CbFsFileInfo
      property IntPtr UserContext;
      property String^ FileName;
      property CallbackFileSystem^ Volume;

    class CbFsFileInfo
      property IntPtr UserContext;
      property string FileName;
      property CallbackFileSystem^ Volume;

    Class CbFsFileInfo
      Property UserContext As IntPtr
      Property FileName As String
      Property Volume As CallbackFileSystem
    End Class

    class CbFsFileInfo
      Object getUserContext();
      void setUserContext(Object value);
      string getFileName();
      void setFileName(string value);
      CallbackFileSystem getVolume();


  • UserContext - User-defined data which is available in event handlers / callbacks while the file is opened
  • FileName - The name of the file or directory
  • Volume - reference to the instance of CallbackFileSystem class, which manages the file or directory


This class is used as a placeholder for various information related to the file or directory, which was opened by Callback File System. An instance of this class is passed as a parameter for various events which are used to perform file or directory operations. The application can use the information contained in this class to access the file or directory which it opened or created before.
Read more about contexts.

Discuss this help topic in CBFS Forum