Reputation: 9
I want to know the directory path that will be accessible by all user in windows.
Multiple user can share the file using that directory.
Upvotes: 0
Views: 162
Reputation: 101606
To get the public folder (FOLDERID_Public
) you should call SHGetKnownFolderPath.
On < Vista you should probably use CSIDL_COMMON_DOCUMENTS
or CSIDL_COMMON_APPDATA
...
Upvotes: 1
Reputation: 9912
%PUBLIC%
environment variable (it resolves to C:\Users\Public
on my system).
Upvotes: 1