title: DbgPrint from WDK sample
body: <p>I need to call DbgPrint or KdPrint function from WDK sample <code>src\print\monitors\localmon</code></p>
  
  <p>Please help with instructions</p>
  
  <p>I've just added</p>
  
  <p><code>#include &lt;ntddk.h&gt;</code> in localmon.c file </p>
  
  <p>and</p>
  
  <p><code>DbgPrint("Some message");</code> in same file</p>
  
  <p>and at compiling I've get next errors:</p>
  
  <pre><code>1&gt;errors in directory c:\winddk\7600.16385.1\src\print\new2\monitors\localmon
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(149) : error C2220: warning treated as
  error - no 'object' file generated
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(614) : error C2011: '_PROCESSOR_NUMBER'
   : 'struct' type redefinition
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(625) : error C2011: '_GROUP_AFFINITY' :
   'struct' type redefinition
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(882) : error C2011: '_FLOAT128' : 'stru
  ct' type redefinition
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(933) : error C2011: '_LARGE_INTEGER' :
  'union' type redefinition
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(951) : error C2011: '_ULARGE_INTEGER' :
   'union' type redefinition
  1&gt;c:\winddk\7600.16385.1\inc\api\ntdef.h(973) : error C2011: '_LUID' : 'struct'
  type redefinition
  </code></pre>
  
  <p>What i'm doing wrong?</p>
  
  <p>Thanks</p>