How to detect the file sharing mode in FILE_OPEN_COMPLETION callback in Cloud Filter API?

WebDAV 106 Reputation points
2021-10-12T06:14:51.917+00:00

How do we detect the file sharing mode inside the CF_CALLBACK_TYPE_NOTIFY_FILE_OPEN_COMPLETION callback in Cloud Filter API?

In the case the file is opened with FILE_SHARE_READ or FILE_SHARE_NONE we need to do certain operations in our back-end storage. Is it possible to detect the file sharing mode?

@Xiaopo Yang - MSFT @Rita Han - MSFT @Fei Xue - MSFT

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,387 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
    2021-10-18T06:47:12.15+00:00

    Any application can open the file with different dwShareMode which triggers the CF_CALLBACK_TYPE_NOTIFY_FILE_OPEN_COMPLETION callback. It‘s impossible to detect the file sharing mode for no handle in the callback.

    0 comments No comments