VFS_GetLastError(
HANDLE:hVFSData
)
→ long
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.