Can someone help me with getting data from the registry. I use these functions. The first works, but the second doesn't. I don't even know if i'm using the right function for the second one.

PHP Code:
RegOpenKey(HKEY_CURRENT_USER"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Shell Folders", &key);
RegQueryValue(key"History"buffer, &ret); 
By the way, there is that Registry entry, so the error isn't that it doesn't exist. Thanks in advance.