Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > Acessing 64 bit registry view from 32 bit application running on Windows 2003 SP1

Reply
Thread Tools

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

 
 
Rupesh_Khetawat
Guest
Posts: n/a
 
      08-21-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

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
running 64 bit web application on 32 bit windows server 2003 =?Utf-8?B?U3JpZGhhcg==?= ASP .Net 0 11-16-2006 04:26 PM
Windows Server 2003 SP1 and VS Studio 2003 installation program Jeremy Holt ASP .Net 0 04-01-2005 05:02 AM
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit,Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new! Ionizer Computer Support 1 01-01-2004 07:27 PM
Acessing MS Exchange 2003 - problems with CDO Nitec Dev ASP General 0 11-26-2003 10:33 AM
Acessing dedicated IP in a Windows 2003 web farm through asp 3.0 Rohit ASP General 0 11-21-2003 09:39 AM



Advertisments