Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:vfs_plugins:exported_functions_reference:vfs_getlasterror

VFS_GetLastError(
     HANDLE:hVFSData
)
→ long

Arguments

hVFSData

[in] The handle to the namespace instance data

Return value

You should return the code of the last error that occurred or 0 if the last call was successful.

Description

The VFS_GetLastError function is called to retrieve a code for the last error encountered by your plugin.

You should maintain a "last error" variable in your namespace data structure. Whenever Opus calls one of your functions you should set this to an appropriate error code if the function fails, or to 0 if the function is successful.