mirror of https://github.com/dahall/Vanara.git
Added IUserHandle reference to all user object handles.
parent
88b92e2cb8
commit
f649adbc24
|
@ -920,7 +920,7 @@ namespace Vanara.PInvoke
|
|||
}
|
||||
|
||||
/// <summary>Provides a <see cref="SafeHandle"/> to a that releases a created HPROPSHEETPAGE instance at disposal using DestroyPropertySheetPage.</summary>
|
||||
public class SafeHPROPSHEETPAGE : SafeHANDLE
|
||||
public class SafeHPROPSHEETPAGE : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="HPROPSHEETPAGE"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Vanara.PInvoke
|
||||
{
|
||||
/// <summary>Signals that a structure or class holds a handle to a synchronization object.</summary>
|
||||
public interface IGraphicsObjectHandle : IHandle { }
|
||||
public interface IGraphicsObjectHandle : IUserHandle { }
|
||||
|
||||
/// <summary>Signals that a structure or class holds a HANDLE.</summary>
|
||||
public interface IHandle
|
||||
|
@ -34,7 +34,7 @@ namespace Vanara.PInvoke
|
|||
|
||||
/// <summary>Provides a handle to an accelerator table.</summary>
|
||||
[StructLayout(LayoutKind.Sequential), DebuggerDisplay("{handle}")]
|
||||
public struct HACCEL : IHandle
|
||||
public struct HACCEL : IUserHandle
|
||||
{
|
||||
private IntPtr handle;
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ namespace Vanara.PInvoke
|
|||
}
|
||||
|
||||
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="HACCEL"/> that is disposed using <see cref="DestroyAcceleratorTable"/>.</summary>
|
||||
public class SafeHACCEL : SafeHANDLE
|
||||
public class SafeHACCEL : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="SafeHACCEL"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
|
@ -816,7 +816,7 @@ namespace Vanara.PInvoke
|
|||
}
|
||||
|
||||
/// <summary>Provides a <see cref="SafeHandle"/> to a Windows that disposes a created HCURSOR instance at disposal using DestroyCursor.</summary>
|
||||
public class SafeHCURSOR : SafeHANDLE
|
||||
public class SafeHCURSOR : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="HCURSOR"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
|
@ -1040,7 +1040,7 @@ namespace Vanara.PInvoke
|
|||
|
||||
/// <summary>Provides a handle to a hook.</summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct HHOOK : IHandle
|
||||
public struct HHOOK : IUserHandle
|
||||
{
|
||||
private IntPtr handle;
|
||||
|
||||
|
@ -1431,7 +1431,7 @@ namespace Vanara.PInvoke
|
|||
}
|
||||
|
||||
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="HHOOK"/> that is disposed using <see cref="UnhookWindowsHookEx"/>.</summary>
|
||||
public class SafeHHOOK : SafeHANDLE
|
||||
public class SafeHHOOK : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="SafeHHOOK"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
|
@ -1208,7 +1208,7 @@ namespace Vanara.PInvoke
|
|||
}
|
||||
|
||||
/// <summary>Provides a <see cref="SafeHandle"/> to a Windows that disposes a created HICON instance at disposal using DestroyIcon.</summary>
|
||||
public class SafeHICON : SafeHANDLE
|
||||
public class SafeHICON : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="SafeHICON"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
|
@ -4082,7 +4082,7 @@ namespace Vanara.PInvoke
|
|||
}
|
||||
|
||||
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="HMENU"/> that is disposed using <see cref="DestroyMenu"/>.</summary>
|
||||
public class SafeHMENU : SafeHANDLE
|
||||
public class SafeHMENU : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="SafeHMENU"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
|
@ -8643,7 +8643,7 @@ namespace Vanara.PInvoke
|
|||
/// <summary>
|
||||
/// Provides a <see cref="SafeHandle"/> to a window or dialog that releases a created HWND instance at disposal using DestroyWindow.
|
||||
/// </summary>
|
||||
public class SafeHWND : SafeHANDLE
|
||||
public class SafeHWND : SafeHANDLE, IUserHandle
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="HWND"/> class and assigns an existing handle.</summary>
|
||||
/// <param name="preexistingHandle">An <see cref="IntPtr"/> object that represents the pre-existing handle to use.</param>
|
||||
|
|
Loading…
Reference in New Issue