Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
plugins:vfs_plugins:exported_functions_reference:vfs_querypath

VFS_QueryPath(
     LPTSTR:lpszPath,
     BOOL:fPrefix,
     LPGUID:pGUID
)
→ BOOL

Arguments

lpszPath

[in] Pointer to a string containing the prefix or file extension to test

fPrefix

[in] Set to TRUE if lpszPath is a URL-style path prefix

pGUID

[out] Pointer to a GUID structure for you to return a unique identifier for this namespace type

Return value

The function must place a GUID in the pGUID parameter and return TRUE if the path or filename extension can be handled, or FALSE if it cannot.

Description

The VFS_QueryPath function is called to discover if your plugin is able to create and display a namespace for a specific file extension, or for a URL-style path prefix.

This function is used if you specify the VFSF_MULTIPLEFORMATS plugin flag. The GUID you return must be unique for the type of namespace you will use to handle this file or prefix. This must be different from the GUID you supplied in response to the VFS_Identify function.

See the Namespace Identification section for more information on this function.