mirror of https://github.com/dahall/Vanara.git
Fixed XML comment warnings
parent
6c92aaab73
commit
b0415fd93a
|
@ -3702,7 +3702,7 @@ namespace Vanara.PInvoke
|
|||
|
||||
/// <summary>Marshals data from this memory to a newly allocated managed object of the type specified by a generic type parameter.</summary>
|
||||
/// <typeparam name="T">The type of the object to which the data is to be copied. This must be a structure.</typeparam>
|
||||
/// <param name="allocatedBytes">If known, the total number of bytes allocated to the native memory in <paramref name="ptr"/>.</param>
|
||||
/// <param name="allocatedBytes">If known, the total number of bytes allocated to the native memory.</param>
|
||||
/// <returns>A managed object that contains the data that this memory points to.</returns>
|
||||
public T ToStructure<T>(uint allocatedBytes) => handle.Convert<T>(allocatedBytes == 0 ? uint.MaxValue : allocatedBytes);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -20,9 +20,9 @@ namespace Vanara.Windows.Shell
|
|||
/// be shown.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// To display a shell context menu in a Form's main menu, call the <see cref="Populate(Menu, CMF)"/> 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 <see
|
||||
/// cref="Form.WndProc"/> like so:
|
||||
/// To display a shell context menu in a Form's main menu, call the <c>Populate</c> or <see cref="GetItems"/> 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 <see cref="Form.WndProc"/> like so:
|
||||
/// </para>
|
||||
/// <code>
|
||||
///protected override void WndProc(ref Message m) {
|
||||
|
|
Loading…
Reference in New Issue