Re:Show HN: Use Windows 10 Apps APIs Directly from Node.js a...
by rpwverheij on Thursday August 04, 2016 @02:43PM
(#12227586)
Yes I'm wondering about this too. Say I want to build a windows application with electron, and I want to use geolocation or bluetooth, does the app need a module for each version of windows if I want to support multiple versions of windows? Or would it perhaps even be possible to generate the modules for the appropriate windows version on the fly from the app itself?
[ Parent
| on HN ]
Re:Show HN: Use Windows 10 Apps APIs Directly from Node.js a...
by pantaloons on Thursday August 04, 2016 @02:55PM
(#12227665)
The Windows runtime is backwards compatible, so there are no breaking changes in WinMD files. You should be able to just generate a module for the latest available version of Windows.WinMD.
Attempting to call functions which don't exist on the OS you are using should just result in E_NOINTERFACE being surfaced by this projection.