I am integrating my application so that it can edit files stored in SharePoint. I use the AKA WebDAV Redirector web client service (webclnt.dll), which does an excellent job so that regular CreateFile / read / write Windows api calls are redirected from the normal I / O path to the network via the WebDAV network. However, I can read-only access the file if it is registered.
Using the web client service, how can I get the file to be extracted when I edit it and then get it to check when I finish editing it?
Edit: I tried using GetFileAttributes and SetFileAttributes to check FILE_ATTRIBUTE_READONLY, hoping that I can use this flag to determine when the file was not extracted and then check it (resetting this flag to check, then setting it to check it) . Bad luck; the file is always displayed as not only read-only.
Steve source share