Hello,
for this you need to call the DINPUTD.H structure DIHIDFFINITINFO
The DIHIDFFINITINFO structure is used by DirectInput to provide information to a HID force-feedback driver about the device it is being asked to control.
https://learn.microsoft.com/en-us/windows/win32/api/dinputd/ns-dinputd-dihidffinitinfo
--If the reply is helpful, please Upvote and Accept as answer--