![]() | OnFinalClose Method |
Called during the execution of the Close method of a driver.
virtual HRESULT OnFinalClose();
Co<MainClass>.cpp
Co<RepCapClass>.cpp
Returns S_OK if successful, otherwise a failure HRESULT.
The OnFinalClose method can be used to perform driver-specific actions immediately after each client call to IIviDriver::Close. This function is called after the call to the IIviDriver::Close implementation. Repeated capability classes also have an OnFinalClose method that is called before the OnFinalClose of the main driver class.
![]() |
---|
By the time this function executes, the instrument I/O infrastructure has already been torn down. Thus, none of the instrument I/O functions can be used within this function. |