locked
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

    Wednesday, March 14, 2012 8:02 PM

Answers

All replies

  • Aptexan,

    What bus does your device use?

    Best Wishes - Eric

    Thursday, March 15, 2012 2:08 AM
    Moderator
  • 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.
    Thursday, March 15, 2012 7:33 PM
    Moderator
  • The following article contains an alternative solution:

    http://msdn.microsoft.com/en-us/library/windows/hardware/hh833785.aspx

    Monday, June 04, 2012 4:34 PM
    Moderator