SimConnect_FlightPlanLoad

The SimConnect_FlightPlanLoad function is used to load an existing flight plan file.

NOTE: The current status of this function is NO ERROR, NO RESPONSE.

 

Syntax
HRESULT SimConnect_FlightPlanLoad(
    HANDLE  hSimConnect,
    const char*  szFileName
    );

 

Parameters
Parameter Description Type
hSimConnect Handle to a SimConnect object. Integer
szFileName Null-terminated string containing the path to the flight plan file. Flight plans have the extension .PLN, but no need to enter an extension here. The easiest way to create flight plans is to create them from within Microsoft Flight Simulator itself, and then save them off for use by the user or AI controlled aircraft. String

 

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