Answered by:
How to pre-install Win32 DLL for Metro App.

Question
-
How to install Win32 DLL with restricted API for Metro App on a machine, so that a Metro App can use the already installed Win32 DLL? Wrapping the Win32 DLL with WinRT component DLL and pre-installing the WinRT comp DLL on the system will work. However, that is not anoption. The Win32 DLL will be installed with the driver (need to be in sync with the Driver) and hence the necessity of pre-installing it.
Thanks!
Aptexan
- Moved by Eric Hanson-MSFTModerator Thursday, March 15, 2012 2:04 AM proper forum (From:Building Metro style apps with C++ )
Wednesday, March 14, 2012 8:02 PM
Answers
-
The following article contains an alternative solution:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh833785.aspx
- Marked as answer by Eric Hanson-MSFTModerator Monday, June 4, 2012 4:34 PM
Monday, June 4, 2012 4:34 PMModerator
All replies
-
Aptexan,
What bus does your device use?
Best Wishes - Eric
Thursday, March 15, 2012 2:08 AMModerator -
I do not know too much of driver details, but pretty sure its PCIe. I am wondering how does the driver details affect any of the Win32 DLL issues I mentioned earlier?
Aptexan
Thursday, March 15, 2012 4:29 PM -
As far as I understand the only way to call (in Metro App) a non-windows and non-C-runtime DLL is packaging the DLL with the Metro app. So if you are suggesting a metro-specific wrapper, how would that wrapper call public API of the Win32 DLL which was already installed on the machine with the driver?
Thanks!
Aptexan
Thursday, March 15, 2012 7:28 PM -
I do not know too much of driver details, but pretty sure its PCIe. I am wondering how does the driver details affect any of the Win32 DLL issues I mentioned earlier?
Aptexan
The device type and bus determines whether a restricted API is the proper choice. It would not be a good choice for a camera as we have a built in API for that.- Proposed as answer by Eric Hanson-MSFTModerator Wednesday, May 9, 2012 6:00 PM
Thursday, March 15, 2012 7:33 PMModerator -
The following article contains an alternative solution:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh833785.aspx
- Marked as answer by Eric Hanson-MSFTModerator Monday, June 4, 2012 4:34 PM
Monday, June 4, 2012 4:34 PMModerator