locked
How to link a folder to music library in metro c++?

    Question

  • Generally, user can add a folder to Music Library as following:

    If I will use file picker to get the storageFolder ,is there any metro c++ api can reach this goal ?

    Thanks for help.


    • Edited by Gary1123 Monday, August 27, 2012 3:49 AM
    Monday, August 27, 2012 3:44 AM

Answers

  • No. Only desktop apps can make system changes like this.

    --Rob

    • Proposed as answer by Jesse Jiang Monday, August 27, 2012 10:38 AM
    • Marked as answer by Jesse Jiang Thursday, August 30, 2012 6:13 AM
    Monday, August 27, 2012 6:03 AM
    Owner

All replies

  • No

    For desktop apps you can use SHAddFolderPathToLibrary



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    Monday, August 27, 2012 4:41 AM
  • Is there any other way can reach this goal in metro app ?

    Thanks for help.

    Monday, August 27, 2012 5:32 AM
  • No. Only desktop apps can make system changes like this.

    --Rob

    • Proposed as answer by Jesse Jiang Monday, August 27, 2012 10:38 AM
    • Marked as answer by Jesse Jiang Thursday, August 30, 2012 6:13 AM
    Monday, August 27, 2012 6:03 AM
    Owner