Site icon EfmSoft

What does NTSTATUS 0x40000017 (STATUS_WAS_UNLOCKED) mean?

 
Previous Next
STATUS_PREDEFINED_HANDLE STATUS_SERVICE_NOTIFICATION

STATUS_WAS_UNLOCKED

The protection change invalidated the previous page lock

A page locked through the process memory APIs must remain accessible under the assumptions used when it was locked. Changing the region to no access breaks those assumptions, so Windows can unlock it while completing the protection change. This warning reports that side effect rather than a failure of the protection operation.

The caller should update its own lock bookkeeping. Later calling VirtualUnlock as though the page were still locked can produce a different error and hide the original transition. If hardware or kernel code still uses the buffer, protection must not be changed until the corresponding I/O ownership has ended.

What to inspect

References


Looking for a different code? Search another status or error code.

Exit mobile version