I know that IsValidReadPtr and IsValidWritePtr existed. But I have a friend with a problem and I suggested that he looks at the handle values.
Apart from INVALID_HANDLE_VALUE and NULL checking, is there a function which says "Yes, this is valid handle (maybe connected to some object)"?