REGERR err; RKEY key; HREG hreg; #if defined(STANDALONE_REGISTRY) || !defined(XP_UNIX) RKEY rootkey; #endif
REGERR err; RKEY key; HREG hreg;
VR_INTERFACE(REGERR) VR_GetPath(char *component_path, uint32 sizebuf, char *buf){	REGERR err;	RKEY key;	HREG hreg;#if defined(STANDALONE_REGISTRY) || !defined(XP_UNIX)	RKEY rootkey;#endif	err = vr_Init();	if (err != REGERR_OK)		return err;	hreg = vreg;	#if !defined(STANDALONE_REGISTRY) && defined(XP_UNIX)    err = vr_FindKey( component_path, &hreg, &key );#else    rootkey = PATH_ROOT(component_path);    err = NR_RegGetKey( vreg, rootkey, component_path, &key );#endif	if (err != REGERR_OK)		return err;        err = vr_GetPathname( hreg, key, PATHSTR, buf, sizebuf );	return err;}	/* GetPath */