C# 클래스 AdvancedLauncher.Tools.Win32.User32.HWND

A SafeHandle representing an HWND.
HWNDs have very loose ownership semantics. Unlike normal handles, there is no "CloseHandle" API for HWNDs. There are APIs like CloseWindow or DestroyWindow, but these actually affect the window, not just your handle to the window. This SafeHandle type does not actually do anything to release the handle in the finalizer, it simply provides type safety to the PInvoke signatures. The StrongHWND SafeHandle will actually destroy the HWND when it is disposed or finalized. Because of this loose ownership semantic, the same HWND value can be returned from multiple APIs and can be directly compared. Since SafeHandles are actually reference types, we have to override all of the comparison methods and operators. We also support equality between null and HWND(IntPtr.Zero).
상속: System.Runtime.InteropServices.SafeHandle
파일 보기 프로젝트 열기: GoldRenard/DMOAdvancedLauncher 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( HWND other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
HWND ( IntPtr hwnd ) : System

Public constructor to create an HWND SafeHandle instance for an existing handle.

operator ( ) : bool

보호된 메소드들

메소드 설명
HWND ( IntPtr hwnd, bool ownsHandle ) : System

Constructor for derived classes to specify a handle and to control whether or not the handle is owned.

HWND ( bool ownsHandle ) : System

Constructor for derived classes to control whether or not the handle is owned.

ReleaseHandle ( ) : bool

비공개 메소드들

메소드 설명
HWND ( ) : System
IsWindow ( IntPtr hwnd ) : bool

메소드 상세

Equals() 공개 메소드

public Equals ( HWND other ) : bool
other HWND
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

HWND() 공개 메소드

Public constructor to create an HWND SafeHandle instance for an existing handle.
public HWND ( IntPtr hwnd ) : System
hwnd System.IntPtr
리턴 System

HWND() 보호된 메소드

Constructor for derived classes to specify a handle and to control whether or not the handle is owned.
protected HWND ( IntPtr hwnd, bool ownsHandle ) : System
hwnd System.IntPtr
ownsHandle bool
리턴 System

HWND() 보호된 메소드

Constructor for derived classes to control whether or not the handle is owned.
protected HWND ( bool ownsHandle ) : System
ownsHandle bool
리턴 System

ReleaseHandle() 보호된 메소드

protected ReleaseHandle ( ) : bool
리턴 bool

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool