we have a problem with injection our dll into some metro applications (For example "File Bricks" - MediaExplorer.exe). We are using standard dll for injection on all OSs (XP, vista, 7, and , but discovered a problem with metro. The problem lies within our dll dependencies. Our dll i dependent on shell32.dll and shell32.dll is internally dependent on comctl32.dll and... Comctl32!DllMain fails during the injection. So, I presume that common controls are not allowed to be inside metro apps. Comctl32!DllMain calls GetCurrentPackageId() and it returns ERROR_INSUFFICIENT_BUFFER. But the comctl32 is expecting APPMODEL_ERROR_NO_PACKAGE which leads to failure...
Interesting thing is that the MediaExplorer.exe has shell32.dll loaded within itself. Maybe we are probably loading different dll...
dll loader log:
Code: Select all
http://files.uloziste.com/40a639acd8332648/xxx.log