I mean use fctrl() go get the mode for the passed in handle and save it into member variable openmode.