/// <summary> /// Processes any pending hook removals. Warning! This method can be quite slow (1 second) under certain circumstances. /// </summary> /// <see cref="NativeAPI.LhWaitForPendingRemovals()"/> public static void Release() { GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); NativeAPI.LhWaitForPendingRemovals(); }
/// <summary> /// Processes any pending hook removals. Warning! This method can be quite slow (1 second) under certain circumstances. /// </summary> public static void Release() { GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); #if SUPPORT_THEME_HOOKS NativeAPI.LhWaitForPendingRemovals(); #endif }