Commit graph

7 commits

Author SHA1 Message Date
Timo Kreuzer df0efd5556 [DDK/XDK/NTOSKRNL/DRIVERS]
Fix incompatible definition of a number of NTOSKRNL data imports. These imports are declared in MS DDK in a way that is usually not how you would declare data imports. The proper way of doing it is using _DECLSPEC_INTRIN_TYPE(dllimport) or in this case NTKERNELAPI, which will cause the compiler to directly dereference the __imp__FooBar symbol. MS has declared some of these variables directly as pointers without using dllimport. This works with MS DDK, since it's import libraries contain aliases (like _FooBar) to the import symbols (__imp__FooBar). Neither MS LINK nor DLLTOOL create these aliases in the import libs, which is good, since hacks like these are dangerous. To make the original declarations work without using macros (which can conflict with other things, like for example the KdDebuggerEnabled member in KUSER_SHARED_DATA) these aliases have to be generated differently. Luckily both MSVC and GCC support a pragma that does exactly this. Fix the incompatible use in our drivers and the broen(!) use of KdDebuggerEnabled in kdcom (which was writing a PBOOLEAN value (FALSE == 0 == NULL, so no warning) into the location that is really a BOOLEAN, possibly overwriting other data. Finally get rid of a number of hacks in ntoskrnl, where prefixed versions were used to not conflict with the DDK definitions.

svn path=/trunk/; revision=63247
2014-05-11 23:11:16 +00:00
Timo Kreuzer 4526c85235 [NDK] Add SAL 2 annotations, use dummy annotations, if no SAL is available
[PSDK/DDK/XDK] Fix a number of annotations, change the order in wdm.h fix IRQL annotations

svn path=/trunk/; revision=58164
2013-01-13 14:49:21 +00:00
Amine Khaldi 7a3aa20827 [XDK]
* Massive annotations commit. Dedicated to Timo.

svn path=/trunk/; revision=55067
2012-01-22 14:43:53 +00:00
Timo Kreuzer 717a730361 [XDK]
- Add some missing NTAPI
- move some types into appropriate headers
- make sure $endif is followed by (...)

svn path=/trunk/; revision=54937
2012-01-13 17:45:26 +00:00
Timo Kreuzer 6a40b4927e Reintegrate header-branch 3/x
- Add XDK

svn path=/trunk/; revision=46547
2010-03-29 02:38:12 +00:00
Timo Kreuzer 719200874a Revert r46466 this time for real
svn path=/trunk/; revision=46493
2010-03-27 18:57:56 +00:00
Timo Kreuzer d0701d72b7 Reintegrate header branch
- DDKAPI -> NTAPI
- delete duplicate definitions
- move files to right locations
- Fix Mm64BitPhysicalAddress definition
- Add a number of missing definitions
- add XDK

svn path=/trunk/; revision=46466
2010-03-26 13:50:02 +00:00