Obtaining path of users directory

前端 未结 5 651
小蘑菇
小蘑菇 2021-01-18 18:43

How to get path of Users folder from windows service on MS Vista? I think about path of C:\\Users directory, but it may be different location depend on sys

5条回答
  •  甜味超标
    2021-01-18 18:49

    I can't see that function exposed to .NET, but in C(++) it would be

    SHGetKnownFolderPath(FOLDERID_UserProfiles, ...)
    

提交回复
热议问题