SimConnect_CameraDisableFlag

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
Parameter Description Type
hSimConnect Handle to a SimConnect object. Integer
Flag This 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 value Description
S_OK The function succeeded.
E_FAIL The 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