The SimConnect_CameraDisableFlag function can be used to disable camera specific features, but only if the camera has been correctly acquired.

Syntax
HRESULT SimConnect_CameraDisableFlag(
    HANDLE hSimConnect,
    DWORD Flag
    );
Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
FlagThis is one or more of the SIMCONNECT_CAMERA_FLAG enum members, merged using bitwise “or” | to create a bitmask which flags specific camera options as disabled.Bitmask
Return Values

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return valueDescription
S_OKThe function succeeded.
E_FAILThe function failed.
Example
SimConnect_CameraDisableFlag(hSimConnect, SIMCONNECT_CAMERA_FLAG_INTERACTION);
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).

0/255