Get D3DInterface or SwapChain

Hi.
I want to attach a external library with plug-in(specifically, BandiCam - Gameplay recording library) to my game and need IDXGISwapChain pointer of current rendering surface(GameViewport) to use this library.

So, I tried to several method to get the interface, but i couldn’t.

How can I get the D3D11 Swapchain for my plug-in?

I am trying to do the same thing, did you ever figure this out?

O_~

pWorld->GetGameViewport()->Viewport->GetViewportRHI()->GetNativeSwapChain()