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

 

Syntax
SimConnect_CameraEnableFlag(
    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 enabled.

 

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_CameraEnableFlag(hSimConnect, SIMCONNECT_CAMERA_FLAG_INTERACTION);

 

Remarks

This function