Access c:\windows\system32 in 32 bit app

  • Thread starter Thread starter Armin Zingler
  • Start date Start date
A

Armin Zingler

Hi,

MsgBox(IO.Directory.GetFiles("c:\windows\system32").Length)

the line returns 2,298 with target=x86 and 2,767 with target=x64.
How can I get the "real" system32 in a x86 app as System32 is always
linked to SysWOW64?

Actually the problem was that I was fooled by "Windiff". It told
me there were differences, but using "fc /b" on the command line
told me that there are no differences. Me being confused. It took
a while til I've noticed that Windiff is a 32 bit app while the
command line is 64 bits, so, Windiff took it's files from SysWOW64
and cmd took tem from System32.

Therefore, the question asked above came into my mind. Is it possible
programmatically in a 32 bit app?
 
Am 23.01.2011 02:07, schrieb Armin Zingler:
Hi,

MsgBox(IO.Directory.GetFiles("c:\windows\system32").Length)

the line returns 2,298 with target=x86 and 2,767 with target=x64.
How can I get the "real" system32 in a x86 app as System32 is always
linked to SysWOW64?

Actually the problem was that I was fooled by "Windiff". It told
me there were differences, but using "fc /b" on the command line
told me that there are no differences. Me being confused. It took
a while til I've noticed that Windiff is a 32 bit app while the
command line is 64 bits, so, Windiff took it's files from SysWOW64
and cmd took tem from System32.

Therefore, the question asked above came into my mind. Is it possible
programmatically in a 32 bit app?

Asked too soon.

This one (related to win2003 not Win7):
http://support.microsoft.com/kb/942589

linking to this one: (Wow64DisableWow64FsRedirection Function)
http://msdn.microsoft.com/en-us/library/aa365743(VS.85).aspx

Also found other topics.

Thanks, got it.
 
Back
Top