active-minibuffer-window

active-minibuffer-window is a built-in function in `C source code'.

(active-minibuffer-window)

Return the currently active minibuffer window, or nil if none.