>I have an application which write any file to the Windows System directory(for instance 'c:\windows\')(Windows 2000).But some windows user does not have access to this 'c:\windows\' dir,but to another system's path.But GetWindowsDirectory function return administrative path('c:\windows\').
>With which API function(or another way) may i get this path)?
>
>Thanks.
Try Check
How do I get the path of special folders from Windows FAQ #16022 and
How do I retrieve special folders without relying on Shell.Application? FAQ #16115. Maybe one of them would return result you need.
--sb--