Need better ::GetWindowsDirectory() for Windows 2003 Server

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

From: Wayne Lenius (wayne_at_uclid.com)
Date: 07/19/04


Date: Mon, 19 Jul 2004 16:39:23 -0500

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

  • RE: Need better ::GetWindowsDirectory() for Windows 2003 Server
    ... SHGetSpecialFolderLocation() or SHGetSpecialFolderPath? ... > Windows/system32. ... We want the folder to be the same regardless of the ...
    (microsoft.public.vc.mfc)
  • 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: 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)
  • Re: Word creating .cvr files
    ... I do not have Winfax installed, but I can see Winfax.dll in Windows/System32 ... fleseems to get created in Windows/System32 folder. ... "Jay Freedman" wrote: ... Whenever this .cvr file is created word will crash out. ...
    (microsoft.public.word.vba.general)
  • Re: Nero with XP question?
    ... > First, regardless of being an OEM version, are you sure it is a ... > is not normal but it's a Nero issue (it might simply be your version ... I'm using properly formatted CDRW discs as Nero directs them ... >> When I create a new folder on the CDRW disc, ...
    (microsoft.public.windowsxp.basics)