GetTaskpaneViewWnd return value

I am a little confused - Do this function return the Windowhandle or the Task pane view status (Enum) - The API help fileseems to indicate both for return value - Am I missing somethinghere? Thanks ScottSolidworksApi macros