如何找到其他用户MyMusic文件夹? [英] how to find MyMusic Folder from other users?

查看:230
本文介绍了如何找到其他用户MyMusic文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找其他用户的MyMusic文件夹?

how to find MyMusic Folder of other users ?

推荐答案

如果您正在运行的程序的帐户具有管理privlieges,你不能只浏览到 C:\Users\<用户名> \Music (这是Windows7的上的路径)结果
。如果你正在寻找的用户文件夹的另一台机器上,那么这是比较困难的。

If the account you are running the program on has administrative privlieges, can't you just navigate to c:\Users\<UserName>\Music(which is the path on Windows7).
If you're looking for folders of users on another machine, then that is more difficult.

编辑:
看来,有一种方法从MSDN <做到这一点, / A>:

It appears that there is a way to do this, from MSDN:

HRESULT SHGetKnownFolderPath(
  __in   REFKNOWNFOLDERID rfid,
  __in   DWORD dwFlags,
  __in   HANDLE hToken,
  __out  PWSTR *ppszPath
);



与RFID是你正在寻找我的音乐的情况下,该文件夹的KNOWNFOLDERID:

With the rfid being the KNOWNFOLDERID of the folder you are looking for in the case of My Music:

GUID{2112AB0A-C86A-4FFE-A368-0DE96E47012E}
Display NameMusicFolder 
Type PERUSER
Default Path: %APPDATA%\Microsoft\Windows\Libraries\Music.library-msCSIDL 
Equivalent None, new in Windows 7
Legacy Display Name Not applicable
Legacy Default Path Not applicable

这篇关于如何找到其他用户MyMusic文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆