Hi All, Is it possible to access native Windows DLLs from a UWP Unity Built application? Am trying to access windowing functions from user32.dll, but it seems to crash on execution of any functions. I have successfully accessed self-built c++ native libraries from Standalone Unity builds and this was fine. Thanks for any pointers, Dave
It would help to see the code and error message, and what you are trying to do. UWP allows only access to a limited set of the Win32 API, see: https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-and-com-for-uwp-apps You may also want to check into this: https://docs.unity3d.com/Manual/windowsstore-scripts.html
You are not allowed to call into system DLLs via DllImport mechanism on UWP. You can only call into libraries you bundle with the application yourself. You can only call into system libraries from native C++ code. Also, functionality in user32.dll is not available to UWP applications, even if you write C++ code to call into them.