reference:plugins:plugin_sdk:configuration_functions:getprogramdir

GetProgramDir(
     LPTSTR:pszBuf,
     int:cchMax
)
→ BOOL

Arguments

pszBuf

[out] Buffer to receive the program directory

cchMax

[in] Size of the supplied buffer, in characters

Return value

Returns TRUE if the path was successfully retrieved, or FALSE on failure.

Description

The GetProgramDir function lets you retrieve the folder Opus is installed in.

Example path returned by this function:

C:\Program Files\GPSoftware\Directory Opus