What does NTSTATUS 0xC0000720 (STATUS_CALLBACK_RETURNED_PRI_BACK) mean?

 
Previous Next
STATUS_CALLBACK_RETURNED_LANG STATUS_CALLBACK_RETURNED_THREAD_AFFINITY

STATUS_CALLBACK_RETURNED_PRI_BACK

The callback left the pooled worker in background mode

Windows background mode lowers CPU and I/O scheduling priorities for the calling thread. It is a thread state, so enabling it inside a callback affects whichever work later reuses that worker. The next callback can become unexpectedly slow even when its own priority configuration is normal.

Background mode should bracket only the intended work and be disabled before return. Restoring a numeric base priority alone is not sufficient because background mode also affects resource scheduling behavior beyond the ordinary thread priority value.

What to inspect

  • Record entry and exit priority, background-mode transitions, I/O priority observations, and worker thread ID.
  • Pair THREAD_MODE_BACKGROUND_BEGIN with THREAD_MODE_BACKGROUND_END on the same thread.
  • Place restoration in guaranteed cleanup rather than after the last expected statement.
  • Check nested helpers so only the component that entered background mode exits it.

References


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