PC Review


Reply
Thread Tools Rate Thread

Acessing 64 bit registry view from 32 bit application running on Windows 2003 SP1

 
 
Rupesh_Khetawat
Guest
Posts: n/a
 
      21st Aug 2006
Hi,

To access 64 bit registry view from 32 bit application on Windows 2003 SP1,
Microsoft has introduced KEY_WOW64_64KEY.
Example:
::RegOpenKeyEx( regkeyRemoteComputer.m_hkey, strSubKey, 0, KEY_WOW64_64KEY |
KEY_QUERY_VALUE, &regSubkey.m_hkey );

I would like to confirm if KEY_WOW64_64KEY flag can create any problems
dealing with 32 bit registry views.

My Observation is:
While testing the remote registrty access code containing the function
metioned above, I've realized that KEY_WOW64_64KEY flag does not create any
problem accessing 32 bit registry and 64 bit registry view from 32
application runinng on OS other than Windows 2003 SP1. I mean, I could read
few 32 bit registry keys inspite of using this flag and that too on Windows
XP SP1 box.

I think KEY_WOW64_64KEY is bit mask, it will be used only if 64 bit OS
registry is accessed. For other OS (32 bit), it would not give any error and
work as expected. Please correct me if I am wrong.

My goal is to see if I can write registry access code with out checking
remote computer machine and OS version(32 bit\ 64 bit). I am worried if
there are any situations (like accessing security related things) where
KEY_WOW64_64KEY can behave wrong for 32 bit registry view.

Please lets us know.

Regards,
Rupesh


 
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
ERROR ACESSING THE REGISTRY Ameneses Windows XP General 2 19th Dec 2008 11:20 PM
Running isqlw or bcp from Windows 2003 Web Application -pb- Microsoft Dot NET Framework 0 4th May 2007 05:15 PM
running 64 bit web application on 32 bit windows server 2003 =?Utf-8?B?U3JpZGhhcg==?= Microsoft ASP .NET 0 16th Nov 2006 04:26 PM
Problem running a .NET application on Windows 2003 Server Björn Hallin Microsoft C# .NET 2 18th Jan 2005 04:12 PM
Problems with application running on Windows 2003 Manuel Krummenacher Microsoft ASP .NET 0 20th Oct 2003 06:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:28 PM.