RE: Need better ::GetWindowsDirectory() for Windows 2003 Server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marc C (MarcC_at_discussions.microsoft.com)
Date: 07/19/04


Date: Mon, 19 Jul 2004 16:00:02 -0700

SHGetSpecialFolderLocation() or SHGetSpecialFolderPath() ?

"Wayne Lenius" wrote:

> We have an application that needs to find a specific subfolder under
> Windows/system32. We want the folder to be the same regardless of the
> logged in user. Within our development environment we are using
> GetWindowsDirectory() and that returns the expected system path regardless
> of user. When testing under Windows 2003 Server, however, the returned
> system32 folder is under the Documents and Settings folder and is specific
> to each user.
>
> Does anyone know an alternative to ::GetWindowsDirectory() that will return
> the actual system path (i.e. c:\windows\system32\)?
>
> Thanks.
>
>
>



Relevant Pages

  • Need better ::GetWindowsDirectory() for Windows 2003 Server
    ... Windows/system32. ... We want the folder to be the same regardless of the ... GetWindowsDirectoryand that returns the expected system path regardless ...
    (microsoft.public.vc.mfc)
  • Re: Folder paths
    ... been around since Windows 95. ... to use SHGetFolderPath instead of SHGetSpecialFolderLocation. ... users cannot write to that folder. ... to get the all users app. ...
    (comp.lang.basic.visual.misc)
  • Error code: 0x8007002 A problem is preventing Windows from accurately checking...
    ... I had this error code and with several days research and beating my ... read yet another article saying that in the Windows/I386 folder there ... I extracted it to the windows/system32 folder and restarted. ... So, I restarted with a win98 bootup disk, it ran for a ...
    (microsoft.public.windowsxp.general)
  • Re: How to get special Appdata folder
    ... Doesn't SHGetSpecialFolderLocation honor CSIDL_FLAG_CREATE? ... of creating the folder with the Vista call. ... CSIDL = CSIDL Or CSIDL_FLAG_CREATE ... 32 - C:\WINDOWS\Temporary Internet Files ...
    (microsoft.public.vb.general.discussion)
  • Re: Password protect files/folders
    ... happened to pass into her office could go right up to it regardless of what ... method of explicitly assigning file/folder permissions to individual users ... HOW TO Set the My Documents Folder as Private in Windows XP ... safety deserve neither liberty nor safety. ...
    (microsoft.public.windowsxp.general)