Ejemplo n.º 1
0
        internal void RenameKey(string CurrentSubKeyName, string NewSubKeyName)
        {
            try
            {
                GetProfileMutex("RenameKey", CurrentSubKeyName + " " + NewSubKeyName);
                sw.Reset(); sw.Start(); // Start timing this call
                TL.LogMessage("RenameKey", "Current SubKey: \"" + CurrentSubKeyName + "\"" + " New SubKey: \"" + NewSubKeyName + "\"");

                FileStore.RenameDirectory(CurrentSubKeyName, NewSubKeyName);
                sw.Stop(); TL.LogMessage("  ElapsedTime", "  " + sw.ElapsedMilliseconds + " milliseconds");
            }
            finally
            {
                ProfileMutex.ReleaseMutex();
            }
        }