Click or drag to resize

OnFinalClose Method

Called during the execution of the Close method of a driver.

virtual HRESULT OnFinalClose();
File

Co<MainClass>.cpp

Co<RepCapClass>.cpp

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Remarks

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.

Note Note

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.

See Also

Download a complete CHM version of this documentation here.