473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Environment.GetFolderPath vs SHGetFolderPath, annoying omission

I need a patch that is returned by API's SHGetFolderPath with
CSIDL_COMMON_DOCUMENTS. I expected to find it among other enums in
Environment.SpecialFolder enumeration. But I cannot find it there.

Do I really have to PInvoke SHGetFolderPath in this case? Why someone forgot
about this one CSIDL? Is it just an annoying omission or there is a deeper
reason for this?

what's more: there's a mistake in a MSDN doc. it says:
"SpecialFolder.Personal - The directory that serves as a common repository
for documents." in fact, this path does not point to the common repository
but, rather, to
the local one. (according to the docs I expected that SpecialFolder.Personal
does the same job as CSIDL_COMMON_DOCUMENTS but it DOES NOT).

Can some one comment this one?
Thanks in advance.

Regards, Wiktor


Nov 15 '05 #1
0 4218

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chandler Chao | last post by:
I am trying to get the path of a user's Personal folder from within a web form. When I use the call: Environment.GetFolderPath(Environment.SpecialFolder.Personal) I get absolutely nothing...
3
by: David Meier | last post by:
Hi, is it possible to get the environment variables for users other than the user that is currently executing the application? For example if I run a system service, how can the service find...
4
by: Viviana Vc | last post by:
Hi all, A Windows service (which obviously starts before any user logs in) is failing to: - read something from registry from a key under the HKCU - try to find out the user path by doing the...
3
by: Nick | last post by:
VB.Net allows the ability to find the path of special folders by calling the System.Environment.GetFolderPath function with a parameter specifying which special folder I want the path of. ...
2
by: Qwert | last post by:
Hello you, the Environment.SpecialFolder enumeration of .NET 1.0 doesn't have the member "MyComputer". Is there anyway to get this 'virtual folder' and its contents in another similar way? ...
1
by: codejunkie | last post by:
I am porting my current project to a 64 bit machine and I am having some issues with folder paths that vary between a 64 and 32 machine for any 32 bit application. The below calls return...
2
by: Anil Gupte | last post by:
Why does System.Environment.SpecialFolder.Personal return "5"? How do I get the actual directory? Thanx, Anil Gupte www.keeninc.net www.icinema.com
1
by: Brian Stoop | last post by:
Hi, In my ASP.NET application I want to rerieve the APPDATA folder of the logged in user. The Web Application is using C# .NET 1.1 and has Impersonation=True I use this code: "string...
3
by: UKishore | last post by:
Dear All, I wrote a sample application for client/server and using the API SHGetFolderPath(). For this application most of document's Path (like MyDocuments,MyPictures,MyVideo), The API is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.