Sidebar

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

VFS_WriteProtect(
     HANDLE:hVFSData,
     LPCWSTR:pszPath,
     BOOL:fState
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

pszPath

[in] The path

fState

[in] The new write protection state

Description

The VFS_WriteProtect function is called to turn write protection on or off for a path.

See also VFS_CanChangeWriteProtected, VFS_CheckWriteProtected and the VFSCAPABILITY_CANCHANGEWRITEPROTECTION capability flag.

This function was added in Directory Opus 13.0 (VFSPLUGINVERSION 13000).