SimConnect_FlightSave
The SimConnect_FlightSave function is used to save the current state of a flight to a flight file.
NOTE: The current status of this function is NO ERROR, NO RESPONSE.
Syntax
HRESULT SimConnect_FlightSave(
HANDLE hSimConnect,
const char* szFileName,
const char* szDescription,
DWORD Flags
);
Parameters
Parameter | Description | Type |
---|---|---|
hSimConnect | Handle to a SimConnect object. | Integer |
szFileName | Null-terminated string containing the path to the flight file. Flight files have the extension .FLT, but no need to enter an extension here. | String |
szTitle | Null-terminated string containing the title of the flight file. If this is NULL then the szFileName parameter is used as the title. | String |
szDescription | Null-terminated string containing the text to enter in the Description field of the flight file. | String |
Flags | Unused. | Integer |
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. |
Remarks
Flight files can be opened using a text editor.
See Also