+ return open_registry_key(registry, sam, key, must_exist);\r
+}\r
+\r
+HKEY open_registry(const TCHAR *service_name, const TCHAR *sub, REGSAM sam, bool must_exist) {\r
+ HKEY key;\r
+ long error = open_registry(service_name, sub, sam, &key, true);\r
+ return key;\r