How to get user's music folder

Started by
3 comments, last by KontosHarry 15 years, 1 month ago
How can I get user's music folder? In C++?
Advertisement
If you are using win32 api you can use SHGetFolderPath with the CSIDL_MYMUSIC parameter.

Example:
char szPath[MAX_PATH];SHGetFolderPath(NULL, CSIDL_MYMUSIC|CSIDL_FLAG_CREATE, NULL, 0, szPath);
and what is it's header?
Function Information

Minimum DLL Version shell32.dll version 5.0 or later
Custom Implementation No
Header shlobj.h
Import library shell32.lib
Minimum operating systems Windows 95 with Internet Explorer 5.0, Windows 98 with Internet Explorer 5.0, Windows 98 Second Edition (SE), Windows NT 4.0 with Internet Explorer 5.0, Windows NT 4.0 with Service Pack 4 (SP4)
Unicode Implemented as ANSI and Unicode versions.

Right there in the link HomerSp gave to you.
Thank you... I've managed to find a way through this... :)

This topic is closed to new replies.

Advertisement