GetConfigPath(
int:iPathType,
LPTSTR:pszBuf,
int:cchMax
)
→ BOOL
| OPUSPATH_CONFIG | Folder where plugin configuration data is stored |
| OPUSPATH_STATEDATA | Folder where plugin state date is stored |
The GetConfigPath function lets you retrieve the path used for storage of plugin configuration data (user-configured, will be backed-up and exported to USB) and state data (non-user configured, eg window positions, not necessarily backed-up or exported.)
Example paths returned by this function on Windows Vista:
| OPUSPATH_CONFIG | C:\Users\<UserName>\AppData\Roaming\GPSoftware\Directory Opus\ConfigFiles\Plugins |
| OPUSPATH_STATEDATA | C:\Users\<UserName>\AppData\Local\GPSoftware\Directory Opus\State Data\Plugins |