WORD pascal WinGetAttr(HWND hWnd) This function gets the value of a window's color attribute field. See the section on attributes for more information. Parameters hWnd is the handle of the window to query. Returns The attribute of the window, or 0 if hWnd was an invalid handle.