title: Why does IoAllocateErrorLogEntry return null?
body: <p>I am trying to write my first Windows 2000 driver and like to use the EventViewer for debugging.</p>
  <p>So I wrote something like this:</p>
  <pre><code>DriverEntry(DriverObject, SomeRegistryPathIDontCareAbout){
      ntoskrnl.exe/IoAllocateErrorLogEntry(
          IoObject = DriverObject,
          EntrySize = 44
      )
  
      return 0;
  }
  </code></pre>
  <p>ntoskrnl.exe/IoAllocateErrorLogEntry just returns 0 instead of an address. Does someone know why the function refuses to allocate some space for an event package?</p>