Registry key sizes under 64 bit Windows


Had a query from one of the user group folks about the registry key sizes under 64 bit Windows that are not being redirected to virtual hives.  I put together the following code to check a couple keys and it appears the 64 bit key sizes are the exact same size as on 32 bit Windows- which intuitively makes sense or all existing applications would start breaking….For a primer on the topic check out:  










Platform SDK: 64-bit Windows Programming


 



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


Dim strval As String = “Not set”


Dim rgkey As RegistryKey = Registry.CurrentUser.OpenSubKey(“Control Panel\International”)


strval = rgkey.GetValue(“slist”)


sList from HKEY_CURRENT_USER\Control Panel\International


MessageBox.Show(strval, strval.Length.ToString)


End Sub


Comments (2)

  1. myITforum Daily Newsletter Daily Newsletter September 6, 2006 The myITforum.com newsletter is delivered

Skip to main content