SECFileSystem::IsReadOnlyFileSystem
BOOLSECFileSystem::IsReadOnlyFileSystem(const CString&FileSystem)
Determines if the specified filesystem is writeable.
Defined in: filesys.cpp
Return Value
Nonzero if the filesystem is read-only or an error occurred; 0 if the filesystem is not read-only.
Parameters
FileSystem
The name of the filesystem to interrogate.
Comments
To determine if a filesystem is read-only, an attempt to open a new file is made. If the file creation is successful, the file is deleted.
Example
BOOL bRetVal = IsReadOnlyFileSystem("c:\\");
See Also