StandaloneGetCurrentConfig
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
Syntax
dword StandaloneGetCurrentConfig(char cfgNameBuffer[], dword cfgNameBufferLength)
Function
Returns the file name of the currently loaded configuration in standalone mode. It includes the file extension, but no path information, for exampleCANSystemDemo.rtcfg. The function can be used in standalone mode. It is also useful to determine whether standalone mode is active or not.
Parameters
cfgNameBuffer Space for the returned name.
cfgNameBufferLength Length of the buffer.
Return Values
0: Successful operation
1: Buffer too small
2: Not in standalone mode
on start{char cfgName[200];DWORD cfgRet;cfgName[0]=0;cfgRet=StandaloneGetCurrentConfig(cfgName,elcount(cfgName));write("StandaloneGetCurrentConfig returns %d %s",cfgRet,cfgName);}
Related APIs
StandaloneGetDefaultConfig | StandaloneConfigSetDefault | StandaloneConfigOpen