Does anyone know how we can use Windows library functions like for example this ms link for ms api? This is given support for .Net supported languages, but is there any way to use these functions in either JavaScript or TypeScript?
For instance, when you have a Discord application installed and you use discord web it prompts you to open in Discord app so most probably it's using the GetProcess Windows library function. So how how can I implement something like that?
I thought I could create an npm package in one of .Net supported languages, but haven't tried that yet. I'm still researching.
Update: Im tyring to use systemMediacontrols in a vs code extension thats what this is for
SystemMediaTransportControlsis a Windows Runtime type. It is a native system API that's unrelated to .NET or C#. As far as I understand, consuming WinRT types from JavaScript is officially supported. Windows Runtime components has a few walkthroughs that should cover the basics of consuming a WinRT type from JavaScript.