GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Jun-2004, 16:28
a_k_ a_k_ is offline
New Member
 
Join Date: Jun 2004
Posts: 3
a_k_ is on a distinguished road

Path to 'Microsoft Shared' folder


How can I find a path to the 'Microsoft Shared' folder in any type of Windows operating system in any configuration?

The most common path is 'C:\Program Files\Common Files\Microsoft Shared'. But it may be not always the same (different boot disk...). Is there any function of Windows API that I can use or Registry entry that will be the same for any configuration?

I tried SHGetFolderPath function with CSIDL_PROGRAM_FILES_COMMON parameter, but this parameter valid only for Windows NT, Windows 2000 and Windows XP systems. What can I use for Windows 95,98,Me?

Thank you very much in advance,
a_k_
  #2  
Old 11-Jun-2004, 20:22
BobbyMurcerFan BobbyMurcerFan is offline
Member
 
Join Date: May 2004
Posts: 103
BobbyMurcerFan is on a distinguished road
This may not be helpful, but are there a similar parameters for 95, 98, Me?

Then depending on which operating system is being used, you can use the appropriate parameter.

It's probably not that easy, but I thought I'd try to help. GOOD LUCK!
  #3  
Old 14-Jun-2004, 18:37
a_k_ a_k_ is offline
New Member
 
Join Date: Jun 2004
Posts: 3
a_k_ is on a distinguished road
Quote:
Originally Posted by BobbyMurcerFan
This may not be helpful, but are there a similar parameters for 95, 98, Me?

Then depending on which operating system is being used, you can use the appropriate parameter.

It's probably not that easy, but I thought I'd try to help. GOOD LUCK!


The problem is that there is no similar parameters for 95, 98, Me.

a_k_
  #4  
Old 14-Jun-2004, 23:13
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
I believe the registry contains entries that tell all programs where to find system folders like %WINDOWSDIR% or %FAVORITES%. Anyways, the point is that they exist, they can be found, I don't know where they are, and don't mess with'em if you do find them, because they can cause harm and confusion if they're moved without warning :-P
__________________
-Aaron
  #5  
Old 15-Jun-2004, 00:06
BobbyMurcerFan BobbyMurcerFan is offline
Member
 
Join Date: May 2004
Posts: 103
BobbyMurcerFan is on a distinguished road
Quote:
Originally Posted by aaroncohn
I believe the registry contains entries that tell all programs where to find system folders like %WINDOWSDIR% or %FAVORITES%. Anyways, the point is that they exist, they can be found...
But I think his question is HOW to find them programatically?
  #6  
Old 15-Jun-2004, 03:05
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
Well, obviously you'd need knowledge of registry access.
__________________
-Aaron
  #7  
Old 15-Jun-2004, 04:26
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
Well it's in the registry under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\SharedFilesDir
I'll let you figure out how to get that!
GF
  #8  
Old 18-Jun-2004, 11:10
a_k_ a_k_ is offline
New Member
 
Join Date: Jun 2004
Posts: 3
a_k_ is on a distinguished road
Thank you very much for the valuable information. It helped me a lot.

a_k_
 
 

Recent GIDBlogMore photos on Flickr by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shortest path algorithm and file saving Pandiani C++ Forum 10 17-Jul-2006 10:46
Writing image to folder misunderstood MySQL / PHP Forum 4 17-Jun-2004 07:18
shared memory and semaphores... socket C Programming Language 1 15-Feb-2004 09:54
Microsoft to block Trillian from MSN messenger on October 15th jrobbio Computer Software Forum - Windows 1 12-Sep-2003 18:35
Microsoft users warned of serious flaw jrobbio Computer Software Forum - Windows 3 25-Mar-2003 08:52

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:22.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.