Hi,
According to your description, it seems your question is related to Hyper V API development, while this forum is mainly related to Hyper V server deployment and troubleshooting. Development is out of our scope, thanks for your understanding!
However, I tried to find some related information for your reference, please check if the following article could be of help:
https://learn.microsoft.com/en-us/virtualization/api/hypervisor-platform/hypervisor-platform
https://learn.microsoft.com/en-us/virtualization/api/hypervisor-platform/funcs/whvmapgparange
Thanks for your time!
Best Regards,
Anne
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.