VFS_QueryTypeConfigInfo(
LPCWSTR:lpszTypeConfigID,
VFSTYPECONFIGINFOW*:lpTypeConfigInfo
)
→ BOOL
[in,out] Points to a VFSTYPECONFIGINFOW structure
| Field | Type | Description |
| cbSize | UINT | Size of the structure |
| lpszLabel | LPWSTR | Name of the type, shown in Preferences. NULL if not wanted |
| lpszDescription | LPWSTR | Description of the type, shown in Preferences. NULL if not wanted |
| lpszHandlePrefix | LPWSTR | File 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 |
| cchDescriptionMax | UINT | Size of the lpszDescription buffer |
| cchHandlePrefixMax | UINT | Size of the lpszHandlePrefix buffer |
| cchHandleExtsMax | UINT | Size of the lpszHandleExts buffer |
| phIconSmall | HICON* | Small icon. NULL if not wanted. Opus will call DestroyIcon on the icon, if one is returned |
| phIconLarge | HICON* | Large icon. NULL if not wanted. Opus will call DestroyIcon on the icon, if one is returned |
| dwFlags | DWORD | VFSTYPECONFIG_ flags (see below) |
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_ENABLED | The type is enabled |
| VFSTYPECONFIG_CANCONFIGURE | The 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).