Driver / Keyboard layout
Hey guys, really great job with this and with jail-breaking WinRT!
Has anybody managed to build a driver successfully.
I'm trying to build a keyboard layout. It's really not a driver but from compilation point of view it sorta is.
When I try to build from Visual Studio I get
Code:
The target "Build" does not exist in the project
(the same project builds on x86).
When I try to build from command line (to avoid MSBuild) I'm getting a lot of errors like these:
Code:
C:\Program Files (x86)\Windows Kits\8.0\include\um\winnt.h(7736) : error C4013: 'ReadAcquire8' undefined; assuming extern returning int
or
Code:
C:\Program Files (x86)\Windows Kits\8.0\include\um\winnt.h(7999) : error C4013: 'WriteNoFence64' undefined; assuming exte
C:\Program Files (x86)\Windows Kits\8.0\include\um\winnt.h(18832) : error C2065: 'CP15_TPIDRURW' : undeclared identifier
r
But I'm not sure I my command line for CL is good. I took x86 command line from Visual Studio and replaced a few stuff.
Code:
cl /GS /analyze- /W4 /Zc:wchar_t- /I"obj\Win32\Win8 Debug" /I"..\..\inc" /Zi /Gm- /Od /FI"C:\Program Files (x86)\Windows Kits\8.0\Include\Shared\warning.h" /fp:precise /D "_X86_=1" /D "i386=1" /D "STD_CALL" /D "WIN32_LEAN_AND_MEAN=1" /D "_WIN32_WINNT=0x0602" /D "WINVER=0x0602" /D "WINNT=1" /D "NTDDI_VERSION=0x06020000" /D "DBG=1" /D "_WINDLL" /errorReport:prompt /WX /Zc:forScope /RTC1 /Oy- /MDd /Fa"obj\Win32\Win8 Debug" /nologo /Fo"obj\Win32\Win8 Debug" /Fp"obj\Win32\Win8 Debug\CzRuQYNm.pch" CzRuQYNm.C CzRuQYNm.DEF
The DLL which represents keyboard layout is actually very simple - it just exports one function which returns a structure. So, it may be possible to compile it against some fake H files with a lot of stuff removed. I really don't need any "ReadAcquire8".
I'd appreciate any hint how to proceed, or if somebody managed to build keyboard layout successfully and can provide some guidance, it'd be great.
I'm attaching a project I'm trying to build.