64 bit & 32 bit Registry issue in Windows (Programming in c#)

前端 未结 2 1235

I\'m trying to get data from the registry of windows to my software but there is one thing i\'m having trouble with it:

if my software runs on a 64 bit system the regist

2条回答
  •  暖寄归人
    2021-01-25 17:54

    You don't state which version of the framework you're using, but if you're using 4+ then you can use Environment.Is64BitOperatingSystem to determine the bitiness of the environment and therefore look/write to the correct place.

提交回复
热议问题