Complain if used outside ntoskrnl/win32k Modified: trunk/reactos/include/reactos/probe.h _____
Modified: trunk/reactos/include/reactos/probe.h --- trunk/reactos/include/reactos/probe.h 2005-12-01 22:40:58 UTC (rev 19818) +++ trunk/reactos/include/reactos/probe.h 2005-12-01 23:02:50 UTC (rev 19819) @@ -1,6 +1,10 @@
#ifndef INCLUDE_REACTOS_CAPTURE_H #define INCLUDE_REACTOS_CAPTURE_H
+#if ! defined(_NTOSKRNL_) && ! defined(_WIN32K_) +#error Header intended for use by NTOSKRNL/WIN32K only! +#endif + static const UNICODE_STRING __emptyUnicodeString = {0}; static const LARGE_INTEGER __emptyLargeInteger = {{0, 0}}; static const ULARGE_INTEGER __emptyULargeInteger = {{0, 0}};