I'm using this code in XP 32-bit OS to get the %windir%\windows\system32
folder path.
sysFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.System)
What I want to know is that will this same code return the %windir%\windows\syswow64
folder when used in Windows 7 (64/32-bit)?
Nope. On my Windows 7 64-bit box, targeting x64: