PC Review


Reply
Thread Tools Rate Thread

Access c:\windows\system32 in 32 bit app

 
 
Armin Zingler
Guest
Posts: n/a
 
      23rd Jan 2011
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?

--
Armin
 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      23rd Jan 2011
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.

--
Armin
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows cannot access the file C:\WINDOWS\system32\wuaueng.dll, Event ID 1005 Barb Reinhardt Windows XP General 0 11th Aug 2006 11:07 AM
\WINDOWS\SYSTEM32\CONFIG\SYSTEM access denied josemc@bellsouth.net Windows XP General 1 29th Oct 2005 06:05 PM
How to access files in %windows folder%/system32 by asp.net/c#?? RC Microsoft ASP .NET 1 25th Jan 2005 02:45 PM
Disallowing Access to Windows and System32 Folders =?Utf-8?B?VHJleQ==?= Windows XP General 1 28th Mar 2004 02:56 AM
Windows XP error message: system32\marisrvr.exe cannot access gapi32.dll Leigh Windows XP Performance 0 5th Jan 2004 03:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 PM.