GetWndBuf (hwnd)

Returns the handle of the file buffer displayed in the window hwnd.