diff --git a/PInvoke/WTSApi32/WTSApi32.cs b/PInvoke/WTSApi32/WTSApi32.cs
index 8ecbc47d..77130790 100644
--- a/PInvoke/WTSApi32/WTSApi32.cs
+++ b/PInvoke/WTSApi32/WTSApi32.cs
@@ -3702,7 +3702,7 @@ namespace Vanara.PInvoke
/// Marshals data from this memory to a newly allocated managed object of the type specified by a generic type parameter.
/// The type of the object to which the data is to be copied. This must be a structure.
- /// If known, the total number of bytes allocated to the native memory in .
+ /// If known, the total number of bytes allocated to the native memory.
/// A managed object that contains the data that this memory points to.
public T ToStructure(uint allocatedBytes) => handle.Convert(allocatedBytes == 0 ? uint.MaxValue : allocatedBytes);
diff --git a/System/Registry/RegistryEventMonitor.cs b/System/Registry/RegistryEventMonitor.cs
index bef35d65..428de690 100644
--- a/System/Registry/RegistryEventMonitor.cs
+++ b/System/Registry/RegistryEventMonitor.cs
@@ -384,7 +384,8 @@ namespace Vanara.Registry
if (hkey == null || hkey.IsClosed || hkey.IsInvalid) throw new InvalidOperationException($"Unable to connect to registry key specified in {nameof(RegistryKeyName)}");
for (var i = 0; i < eventCount; i++)
{
- threads[i]?.Abort();
+ if (threads[i] is not null && threads[i].IsAlive)
+ threads[i].Join(500);
threads[i] = new Thread(MonitorRegThreadProc) { IsBackground = false };
threads[i].Start(i);
}
diff --git a/UnitTests/System/PowerTests.cs b/UnitTests/System/PowerTests.cs
index 496fee83..864a4ea5 100644
--- a/UnitTests/System/PowerTests.cs
+++ b/UnitTests/System/PowerTests.cs
@@ -76,7 +76,7 @@ namespace Vanara.Diagnostics.Tests
[Test]
public void EventTest()
{
- bool eventFired = false, eventFailed = false;
+ //bool eventFired = false, eventFailed = false;
//PowerManager.QueryStandby += (s, e) => { e.Cancel = true; eventFired = true; };
//PowerManager.StandingBy += (s, e) => eventFired = true;
//PowerManager.StandbyFailed += (s, e) => eventFailed = true;
diff --git a/Windows.Shell/ShellObjects/ShellContextMenu.cs b/Windows.Shell/ShellObjects/ShellContextMenu.cs
index 33ce34c0..735526e0 100644
--- a/Windows.Shell/ShellObjects/ShellContextMenu.cs
+++ b/Windows.Shell/ShellObjects/ShellContextMenu.cs
@@ -20,9 +20,9 @@ namespace Vanara.Windows.Shell
/// be shown.
///
///
- /// To display a shell context menu in a Form's main menu, call the method to populate the menu. In addition, you
- /// must intercept a number of special messages that will be sent to the menu's parent form. To do this, you must override like so:
+ /// To display a shell context menu in a Form's main menu, call the Populate or methods to populate the
+ /// menu. In addition, you must intercept a number of special messages that will be sent to the menu's parent form. To do this, you
+ /// must override like so:
///
///
///protected override void WndProc(ref Message m) {