How can I get the topmost window handle.

i have set the window position as follows:
pWnd->SetWindowPos(&wndTopMost , 0,0, 0, 0, SWP_NOSIZE);

I need to check if pWnd is topmost many times in the program. If it is not on top, I will set the window position as above.

How can I check that?

Thanks in advance.