Directory Opus has many built-in file information that can be displayed in Listers. Many of these can be used with VFS plugins and function automatically. Others, like the Music and Image information fields, only work with plugins if you set the appropriate capabilities flags to enable them. Other columns, like the Program information fields, do not work with VFS plugins at all.

Directory Opus lets plugins provide their own list of custom information columns that display data provided by the plugin. These columns appear to the user in the Special column category in the Folder Options dialog.

To implement custom columns you must provide a VFS_GetCustomColumns function.

BOOL VFS_GetCustomColumns( HANDLE hVFSData )

Directory Opus calls this function soon after your namespace has been instantiated with VFS_Create. The hVFSData parameter is your instance handle, returned from VFS_Create. The VFS_GetCustomColumns function must return a pointer to a linked list of VFSCUSTOMCOLUMN structures, each one of which defines a custom column.

The members of the VFSCUSTOMCOLUMN structure are:

The column information you return from the VFS_GetCustomColumns function must remain valid for at least the lifetime of the namespace instance. Opus treats the pointer you return as read-only - it will not modify it or any of the data it points to but it may use the data and strings at any time. Therefore you should either define your columns as static data, or allocate the data when your namespace is instantiated and only free it when your namespace is destroyed.

If your plugin does not require custom columns you should simply not provide a VFS_GetCustomColumns function.