Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:vfs_plugins:vfs_querytypeconfiginfo

VFS_QueryTypeConfigInfo(
     LPCWSTR:lpszTypeConfigID,
     VFSTYPECONFIGINFOW*:lpTypeConfigInfo
)
→ BOOL

Arguments

lpszTypeConfigID

[in] The ID of the type

lpTypeConfigInfo

[in,out] Points to a VFSTYPECONFIGINFOW structure

FieldTypeDescription
cbSizeUINTSize of the structure
lpszLabelLPWSTRName of the type, shown in Preferences. NULL if not wanted
lpszDescriptionLPWSTRDescription of the type, shown in Preferences. NULL if not wanted
lpszHandlePrefixLPWSTRFile path prefix the type handles, e.g. "http:", shown in Preferences. NULL if not wanted| |lpszHandleExts|LPWSTR|File extensions of the type, e.g. ".xxx;.yyy;.zzz", shown in Preferences. NULL if not wanted| |cchLabelMax|UINT|Size of the //lpszLabel buffer
cchDescriptionMaxUINTSize of the lpszDescription buffer
cchHandlePrefixMaxUINTSize of the lpszHandlePrefix buffer
cchHandleExtsMaxUINTSize of the lpszHandleExts buffer
phIconSmallHICON*Small icon. NULL if not wanted. Opus will call DestroyIcon on the icon, if one is returned
phIconLargeHICON*Large icon. NULL if not wanted. Opus will call DestroyIcon on the icon, if one is returned
dwFlagsDWORDVFSTYPECONFIG_ flags (see below)

Description

The VFS_QueryTypeConfigInfo function is called to retrieve information about one of your plugin's types, for display in Preferences.

The prefix and extensions you return are for display only. Make sure what you return is consistent with what the plugin actually handles.

The following flags are defined for the dwFlags field:

VFSTYPECONFIG_ENABLEDThe type is enabled
VFSTYPECONFIG_CANCONFIGUREThe type can be configured (see VFS_ConfigureTypeConfig)

Type configs are used by plugins that want multiple entries in the VFS plugin list, one for each type they handle. The plugin must specify the VFSF_TYPECONFIGS flag in VFS_Identify for type config data to be requested. Each type is identified by a string ID, which is not case-sensitive.

See also VFS_QueryTypeConfigIDs, VFS_SetTypeConfigFlags and VFS_ConfigureTypeConfig.

This function was added in Directory Opus 10 (VFSPLUGINVERSION 4).