DwmApiDwmGetWindowAttribute(SafeHandle, DwmWindowAttribute, NativeRectangle, Int32) Method
Retrieves the current value of a specified attribute applied to a window.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DwmApi.dll")]
public static int DwmGetWindowAttribute(
SafeHandle hWnd,
DwmWindowAttribute attribute,
ref NativeRectangle refAttribute,
int sizeAttribute
)
<DllImportAttribute("DwmApi.dll">]
Public Shared Function DwmGetWindowAttribute (
hWnd As SafeHandle,
attribute As DwmWindowAttribute,
ByRef refAttribute As NativeRectangle,
sizeAttribute As Integer
) As Integer
Dim hWnd As SafeHandle
Dim attribute As DwmWindowAttribute
Dim refAttribute As NativeRectangle
Dim sizeAttribute As Integer
Dim returnValue As Integer
returnValue = DwmApi.DwmGetWindowAttribute(hWnd,
attribute, refAttribute, sizeAttribute)
public:
[DllImportAttribute(L"DwmApi.dll")]
static int DwmGetWindowAttribute(
SafeHandle^ hWnd,
DwmWindowAttribute attribute,
NativeRectangle% refAttribute,
int sizeAttribute
)
[<DllImportAttribute("DwmApi.dll")>]
static member DwmGetWindowAttribute :
hWnd : SafeHandle *
attribute : DwmWindowAttribute *
refAttribute : NativeRectangle byref *
sizeAttribute : int -> int
No code example is currently available or this language may not be supported.
- hWnd SafeHandle
-
The handle to the window from which the attribute data is retrieved.
- attribute DwmWindowAttribute
-
The attribute to retrieve
- refAttribute NativeRectangle
-
A pointer to a value that, when this function returns successfully, receives the current value of the attribute.
The type of the retrieved value depends on the value of the attribute parameter.
- sizeAttribute Int32
-
The size of the DwmWindowAttribute value being retrieved.
The size is dependent on the type of the refAttribute parameter.
Int32
If this function succeeds, it returns
S_OK.
Otherwise, it returns an HRESULT error code.