0 Members and 1 Guest are viewing this topic.
var APathBuffer: array[0..MAX_PATH] of WideChar; APlayerManager: IAIMPAddonsPlayerManager;begin if ACoreUnit.QueryInterface(IID_IAIMPAddonsPlayerManager, APlayerManager) = S_OK then begin ZeroMemory(@APathBuffer[0], Length(APathBuffer) * SizeOf(WideChar)); if APlayerManager.ConfigGetPath(AIMP_CFG_PATH_PROFILE, @APathBuffer[0], Length(APathBuffer)) = S_OK then // теперь APathBuffer содержит в себе путь к папке профиля end;end;
IAIMPAddonsPlayerManager *APlayerManager; wchar_t APathBuffer[MAX_PATH]; if (ACoreUnit->QueryInterface(IID_IAIMPAddonsPlayerManager, (void **)&APlayerManager) == S_OK) { memset(&APathBuffer[0], 0, MAX_PATH * sizeof(wchar_t)); if (APlayerManager->ConfigGetPath(AIMP_CFG_PATH_PROFILE, &APathBuffer[0], MAX_PATH) == S_OK) { // теперь APathBuffer содержит в себе путь к папке профиля }; APlayerManager->Release(); };