windowskernelprogrammingbook2e icon indicating copy to clipboard operation
windowskernelprogrammingbook2e copied to clipboard

code neatpick: ExAllocatePoolWithTag deprecated, page 44

Open profnandaa opened this issue 1 year ago • 5 comments

image

  1. UNREFERENCED_PARAMETER not needed since DriverObject is referenced?
  2. Did we need to cast RegistryPath since it was already PUNICODE_STRING from the DriverEntry function definition?
  3. Lastly I get warning that ExAllocatePoolWithTag is deprecated:

Warning C4996 'ExAllocatePoolWithTag': ExAllocatePoolWithTag is deprecated, use ExAllocatePool2.

This might require update of table 3-4 too on page 42:

image

== Developing on Windows 11.

profnandaa avatar Apr 25 '23 09:04 profnandaa