DeviceIoControl API failure in latest windows 10 OS while querying a bitlocked USB with control code: IOCTL_DISK_IS_WRITABLE
I have an MFC application which was created using windows SDK version 10.0.17763.0. Basically the application was deployed in Windows 10 1909 build(LTSC 2019). I have used DeviceIoControl API to check whether the drive is writable. In 1909 windows version the API was successful, but when I use the application in latest windows version(21H1/21H2), the API fails and return GetLastError value: FVE_E_LOCKED_VOLUME, which has the information "This drive is locked by BitLocker Drive Encryption. You must unlock this volume from Control Panel.".
I am not exactly looking for a solution to the API failure, but trying to find out from which windows 10 OS version this behavior has started. As I am using 10.0.17763.0 windows SDK version to build the application, and the same application is used in both old and latest windows version. Can you suggest an explanation for this, what happened to the behavior ?