Returns the full path to System, Group or User folder, plus a subfolder if desired.
string okutil_get_origin_path( int nPathType, LPCSTR lpcszSubPath = NULL, BOOL bCheckExistAndDiffFromUserPath = FALSE )
Return full path with final backslash to the desired Origin folder.
EX1
void okutil_get_origin_path_ex1() { string strUserThemePath, strUserThemeSubPath, strSystemThemePath; strUserThemePath = okutil_get_origin_path(ORIGIN_PATH_USER, "Theme"); strUserThemeSubPath = okutil_get_origin_path(ORIGIN_PATH_USER, "Theme\\Subpath"); strSystemThemePath = okutil_get_origin_path(ORIGIN_PATH_SYSTEM, "Theme"); }
origin.h