DwmApiDwmGetWindowAttribute(IntPtr, DwmWindowAttribute, Boolean, Int32) Method

Retrieves the current value of a specified attribute applied to a window.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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(
	IntPtr hWnd,
	DwmWindowAttribute attribute,
	ref bool refAttribute,
	int sizeAttribute
)

Parameters

hWnd  IntPtr
The handle to the window from which the attribute data is retrieved.
attribute  DwmWindowAttribute
The attribute to retrieve
refAttribute  Boolean
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.

Return Value

Int32
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

See Also