This is partially FYI and partially in response to Phil's question in the VB forum...
Using the registry, if you've looked into it, is largely undocumented. Hopefully the following code will save you some time:
PHP Code:
// The instance of the Registry key class is created by the 
// static method OpenSubKey in the Registry class
// The second boolean parameter opens the key for editing if true
RegistryKey RegTest Registry.LocalMachine.OpenSubKey("SOFTWARE\\TESTKEY",true);

// This results in a DWORD key
int  testValue1 50 
// This results in a multi line string entry
string[] testValue2 = new String[3] {"Eat","my","shorts"};
// This results in a byte field (a non-array will be a simple byte key)
byte[] testValue3 = new byte[3] {1,2,3};
// Almost any other type results in a string, REG_SZ

// Creates a new key and value under the current subkey
RegTest.SetValue("TestValue1",testValue1) ;
RegTest.SetValue("TestValue2",testValue2) ;
RegTest.SetValue("TestValue3",testValue3) ;