Re: Access denied fro GetShortPathName in Windows Vista
- From: "SvenC" <SvenC@xxxxxxxxxxxxx>
- Date: Mon, 25 Aug 2008 17:10:26 +0200
Hi tuma,
Thanks. It works. But I am very curious to know why the “Access
Denied” error when I hard code the path.
Compare your hard coded path and the path returned from
CSIDL_LOCAL_APPDATA. They are not identical, right?
Vista uses hard links to "support" the old (pre-Vista) directory
names in a limited way. Those hard links have a different
default security compared with what you get through the
above CSIDL. That might bight you.
In short: never use hard coded paths as different Windows
versions and languages will have slightly varying paths.
--
SvenC
.
- References:
- Access denied fro GetShortPathName in Windows Vista
- From: tuma
- Re: Access denied fro GetShortPathName in Windows Vista
- From: David Lowndes
- Re: Access denied fro GetShortPathName in Windows Vista
- From: tuma
- Re: Access denied fro GetShortPathName in Windows Vista
- From: David Lowndes
- Re: Access denied fro GetShortPathName in Windows Vista
- From: tuma
- Re: Access denied fro GetShortPathName in Windows Vista
- From: David Lowndes
- Access denied fro GetShortPathName in Windows Vista
- Prev by Date: Re: Access denied fro GetShortPathName in Windows Vista
- Next by Date: Re: Indexer on generic argument
- Previous by thread: Re: Access denied fro GetShortPathName in Windows Vista
- Next by thread: Software Testing – Unit Testing With Typemock Isolator
- Index(es):
Relevant Pages
|