cuMemExportToShareableHandle to Direct3D11

Hello,
I’m trying to export a cuda texture to D3D11 analogous to how it is described in simpleVulkanMMAP sample. However, when trying to open a handle on the directx side via ID3D11Device::OpenSharedHandle I get an exception thrown. Simple investigation shows that inside OpenSharedHandle logic doesn’t go past D3DKMTQueryResourceInfo, which suggests that the problem is the handle not being recognized. Is this scenario even supposed to work ?
Edit:
The NT_STATUS returned from D3DKMTQueryResourceInfo is STATUS_INVALID_PARAMETER