[tor-bugs] #7956 [Tor]: Tor uses Roaming (remote) AppData, not Local
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Oct 26 00:21:44 UTC 2013
#7956: Tor uses Roaming (remote) AppData, not Local
-------------------------+-------------------------------------------------
Reporter: | Owner:
cypherpunks | Status: new
Type: defect | Milestone: Tor: 0.2.5.x-final
Priority: major | Version: Tor: unspecified
Component: Tor | Keywords: tor-client win32 024-backport
Resolution: | AppData Roaming Local Windows
Actual Points: | Parent ID:
Points: |
-------------------------+-------------------------------------------------
Comment (by GITNE):
{{{SHGetFolderPath()}}} is the way to go as long as Tor wants to support
Windows 2000 and later. Don't get yourself confused by this function being
marked as deprecated. Before Windows Vista this was the way to get any
special profile folders.
{{{
SHGetFolderPathW(
0,
CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE,
NULL,
SHGFP_TYPE_CURRENT,
ptrPathWchar_t
);
}}}
And by the way, this has '''nothing''' to do with COM. CSIDL stands for
"constant special item ID list".
Oh, and I strongly encourage you to use the Unicode version of it
{{{SHGetFolderPathW()}}} because paths returned by this function may
contain characters that are outside of current user's ANSI codepage.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7956#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list