# SimConnect_CameraRelease The **SimConnect\_CameraRelease** function is used to release a previously acquired camera when no longer required or for other systems to acquire it.   ##### Syntax ``` cpp HRESULT SimConnect_CameraRelease( HANDLE hSimConnect, const char * CameraDefName ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------| | *hSimConnect* | Handle to a SimConnect object. | Integer | | *CameraDefName* | The name of the defined camera to which the simulation should switch once the add-on camera is released. If not specified, the simulation will go back to the camera being used before the add-on camera was acquired. | String | {{< /table-wrapper >}}   ##### Return Values The function returns an **HRESULT**. Possible values include, but are not limited to, those in the following table. {{< table-wrapper >}} | Return value | Description | |--------------|-------------------------| | S\_OK | The function succeeded. | | E\_FAIL | The function failed. | {{< /table-wrapper >}}   ##### Example ``` cpp SimConnect_CameraRelease(hSimConnect, "Pilot"); // Will switch to camera Pilot SimConnect_CameraRelease(hSimConnect, ""); // Will switch to last selected camera ```   ##### Remarks Note that if the add-on camera has not been acquired previously, then a `SIMCONNECT_EXCEPTION_CAMERA_API` exception will be sent (see `SIMCONNECT_EXCEPTION` for more information).