[ros-diffs] [gvg] 19819: Complain if used outside ntoskrnl/win32k

gvg at svn.reactos.com gvg at svn.reactos.com
Fri Dec 2 00:03:01 CET 2005


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}};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051202/f5834d1a/attachment.html


More information about the Ros-diffs mailing list