How to get user's music folder
If you are using win32 api you can use SHGetFolderPath with the CSIDL_MYMUSIC parameter.
Example:
Example:
char szPath[MAX_PATH];SHGetFolderPath(NULL, CSIDL_MYMUSIC|CSIDL_FLAG_CREATE, NULL, 0, szPath);
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement