RTERROR RTOpenLogFile(LPCTSTR lpszLogFile = NULL, LPCTSTR lpszDriverID = NULL, LPCTSTR lpszVehicleID = NULL, LPCTSTR lpszRouteID = NULL, BOOL fTrailContinuation = FALSE, DWORD dwExtendedRecordSize = 0, DWORD dwExtendedHeaderSize = 0);
| Parameters | Description |
| lpszLogFile | A pointer to a TCHAR buffer containing the path and filename of the log file to be opened or created |
| lpszDriverID | A pointer to a TCHAR buffer containing the optional driver name |
| lpszVehicleID | A pointer to a TCHAR buffer containing the optional vehicle name |
| lpszRouteID | A pointer to a TCHAR buffer containing the optional route name |
| fTrailContinuation | Specifies whether this file represents a continuation of a trail started in another file (TRUE) or a new trail (FALSE) |
| dwExtendedRecordSize | A DWORD value indicating the size of any extended data in the records section of the log file |
| dwExtendedHeaderSize |
A DWORD value indicating the size of any extended data in the header section of the log file
|
| Return Values | Description |
| RTE_NONE | The file opened successfully |
| RTE_INVALID_PARAMETER | NULL pointer passed for lpszLogFile |
| RTE_LOG_FILE_OPEN |
There was an error opening the Log File specified
|