Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

strange behavior when the driver contain call of ExAllocateFromPagedLookasideList

yu_shangyu_shang Member Posts: 41
edited July 2022 in NTFSD

Hi dear all,
I found that if a driver contain call of ExAllocateFromPagedLookasideList , the driver will not get loaded, even it is in a dead code path like this

if(FALSE) {
  ExAllocateFromPagedLookasideList(...); // if I comment out this line, everything is ok

How does this happen? I'm not sure if this is related with the last step of build : ApiValidator. Many thanks!


  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,679

    This API can be inline or an import depending on the target OS (see WDM.H). Which OS are you targeting in your build setting and which OS are you running on?


  • yu_shangyu_shang Member Posts: 41
    edited July 2022

    I'm using a building template copied from the WDK sample


    The actual running OS is Windows LTSC (1809 17763.107)
    Update : Not sure if this API is exported by the actual running OS.

    Post edited by yu_shang on
  • yu_shangyu_shang Member Posts: 41
    edited July 2022

    Thank you. Found the reason : the driver use the import version of ExAllocateFromPagedLookasideList , but the actual OS is not exporting the function.

  • sunnylocussunnylocus Member Posts: 2

    Hi @yu_shang

    I have encountered the same problem. Can I ask how you solved it? my OS is Windows 10, thank you.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online