Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Opportunistic Lock Operations
If an application requests opportunistic locks, all files for which it requests locks must be opened for overlapped (asynchronous) input and output by using the CreateFile function with the FILE_FLAG_OVERLAPPED flag. After the files are opened for overlapped operation, you can use the DeviceIoControl function with one of the following control codes to work with those files' opportunistic locks:
The following control codes are for working with legacy oplock types:
Feedback
Was this page helpful?
