How to use d3d11screencapturesrc to capture the screen while in a locked screen state

I created an application using GStreamer to capture the Windows screen using d3d11screencapturesrc.
It successfully captures the screen in a normal state, but it fails to capture the screen when the system is in a locked screen state.
How can I solve this issue?