I really know that Codeplex has an attempt to run SQL Lite for Metro Apps. http://sqlwinrt.codeplex.com/. Depending on the state of the port, you may consider this as an option.
I could see how this would be useful, but I do not know how to check a separate DLL.
However, there are a number of implicit and explicit checks that will take place to give you a very good idea.
If you want to load the application into the repository, the SQL Lite implementation must be part of your package and thus it will be checked during the certification process. The certification process checks all the executables and DLLs in your project and looks for bad APIs. If this is found, certification will fail.
In addition, the Windows 8 SDK that you are compiling has header files that expose only the Win8 Metro APIs, so you should get errors during compilation (it seems you solved this by successfully compiling).
Finally, you work in an isolated environment with your application, and when the API tries to do something that it should not, for example, a trivial example of registry access, you would encounter security / access problems. SYSINTERNALS "Process Monitor" is a great way to observe this in your application by looking at security / access issues during tracing.
I know this is a wide blow to fit your question. Hope this helps.
source share