VR_INTERFACE(void) NR_ShutdownRegistry(void)
VR_INTERFACE(REGERR) NR_RegGetUsername(char **name)
VR_INTERFACE(void) NR_ShutdownRegistry(void){    REGFILE* pReg;    if (!bRegStarted)        return;        #ifndef STANDALONE_REGISTRY    if ( vr_monitor != NULL ) {        VR_Close();        PR_DestroyMonitor(vr_monitor);        vr_monitor = NULL;    }#endif     /* close any forgotten open registries */    while ( RegList != NULL ) {        pReg = RegList;    	if ( pReg->hdrDirty ) {    		nr_WriteHdr( pReg );        }        nr_CloseFile( &(pReg->fh) );        nr_DeleteNode( pReg );    }    #ifndef STANDALONE_REGISTRY        if ( reglist_monitor != NULL ) {        PR_DestroyMonitor( reglist_monitor );        reglist_monitor = NULL;    }#endif     XP_FREEIF(user_name);    XP_FREEIF(globalRegName);    bRegStarted = FALSE;}