Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
QuestionCalling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 1:40
Krishnaraj Barvathaya B15-Jan-09 1:40 
AnswerRe: Calling optional parameterized method in c# Pin
DaveyM6915-Jan-09 3:36
professionalDaveyM6915-Jan-09 3:36 
GeneralRe: Calling optional parameterized method in c# Pin
Dave Kreskowiak15-Jan-09 4:39
mveDave Kreskowiak15-Jan-09 4:39 
GeneralRe: Calling optional parameterized method in c# Pin
Scott Dorman15-Jan-09 5:00
professionalScott Dorman15-Jan-09 5:00 
GeneralRe: Calling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 7:14
Krishnaraj Barvathaya B15-Jan-09 7:14 
AnswerRe: Calling optional parameterized method in c# Pin
Dave Doknjas15-Jan-09 13:22
Dave Doknjas15-Jan-09 13:22 
GeneralRe: Calling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 21:12
Krishnaraj Barvathaya B15-Jan-09 21:12 
QuestionHow to read 32 bit registry value from 64 bit application Pin
Hemal Kotak15-Jan-09 0:59
Hemal Kotak15-Jan-09 0:59 
Hi i have code on 64 bit system on windows 2008 server enterprise.

i want to read some value of my application in it through C# code, when i read by default it reads from wow6432 node only, but i need to read value from 32 bit node.

64 bit key value
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\COMPANY\product Name\1.0\folder

32 bit key value
HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\product name\1.0\folder


how write code to force reading value from folder32 in 32 bit registry hive?

i have set the flag for 32 bit system read that is:

UIntPtr HKEY_LOCAL_MACHINE = (UIntPtr)0x80000002;
const int KEY_WOW64_32KEY = 0x0200;
const int KEY_QUERY_VALUE = 0x1;


but still when i give like

RegistryHelper regHelper = RegistryHelper();
regHelper.BaseRegistryKey = Registry.LocalMachine;
regHelper.SubKey=@"HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\product name\1.0\folder"

string sPath = regHelper.ReadString("Path");


it gives sPath=null only.


it is searching in 64 bit node only. please help me resolve this issue.

thanks in Advance.

Hemal Kotak

AnswerRe: How to read 32 bit registry value from 64 bit application Pin
Simon P Stevens15-Jan-09 1:24
Simon P Stevens15-Jan-09 1:24 
GeneralRe: How to read 32 bit registry value from 64 bit application Pin
Hemal Kotak15-Jan-09 3:04
Hemal Kotak15-Jan-09 3:04 
Question.arc Pin
mark_w_15-Jan-09 0:27
mark_w_15-Jan-09 0:27 
AnswerRe: .arc Pin
benjymous15-Jan-09 0:51
benjymous15-Jan-09 0:51 
QuestionInstantiate System.String through reflection Pin
jdstuart15-Jan-09 0:00
jdstuart15-Jan-09 0:00 
AnswerRe: Instantiate System.String through reflection Pin
SeMartens15-Jan-09 0:42
SeMartens15-Jan-09 0:42 
GeneralRe: Instantiate System.String through reflection Pin
jdstuart15-Jan-09 1:58
jdstuart15-Jan-09 1:58 
GeneralRe: Instantiate System.String through reflection Pin
Daniel Grunwald15-Jan-09 2:25
Daniel Grunwald15-Jan-09 2:25 
AnswerRe: Instantiate System.String through reflection Pin
jdstuart15-Jan-09 2:50
jdstuart15-Jan-09 2:50 
GeneralRe: Instantiate System.String through reflection Pin
SeMartens15-Jan-09 2:27
SeMartens15-Jan-09 2:27 
GeneralRe: Instantiate System.String through reflection Pin
jdstuart15-Jan-09 2:32
jdstuart15-Jan-09 2:32 
GeneralRe: Instantiate System.String through reflection Pin
SeMartens15-Jan-09 3:08
SeMartens15-Jan-09 3:08 
GeneralRe: Instantiate System.String through reflection Pin
jdstuart15-Jan-09 18:33
jdstuart15-Jan-09 18:33 
QuestionGenerics Casting [modified] Pin
gnjunge14-Jan-09 23:45
gnjunge14-Jan-09 23:45 
AnswerRe: Generics Casting Pin
Simon P Stevens15-Jan-09 0:31
Simon P Stevens15-Jan-09 0:31 
GeneralRe: Generics Casting Pin
gnjunge15-Jan-09 0:57
gnjunge15-Jan-09 0:57 
GeneralRe: Generics Casting Pin
Simon P Stevens15-Jan-09 1:17
Simon P Stevens15-Jan-09 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.