Writing HAL API RRS feed

  • Question

  • Hi,

    I am trying to interface an external module with Dragonboard 410c controller. I am developing UWP Application for the interaction with hardware. The Module vendor is providing set of HAL APIs which is developed using C. 

    But I am developing my applications in C#. what is the steps I should do to integrate those APIs with my application. Since I am new to this development, looking for some solutions or tutorials. 



    Friday, September 6, 2019 2:19 AM

All replies

  • Hi Ragu-IOT,

    Thank you for posting here.

    According to your description, you could refer to the following link to call c from c# to do what you want.

    PInvoke ( How to Call C from C# )

    Note:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, September 6, 2019 2:47 AM
  • Btw, since you're writing software interacting with HAL, this article on how to do P/Invoke with UWP app on Windows IOT might be useful for you. (Spoiler: The way for doing P/Invoke is the same, but if you need to link with some standard Windows system library, the DLL name you want to point to might not be the same.)

    Friday, September 6, 2019 5:56 AM