Table of Contents

Method DwmSetWindowAttribute

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

DwmSetWindowAttribute(nint, DwmWindowAttribute, ref int, int)

Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window.

public static extern int DwmSetWindowAttribute(nint hwnd, MswUtils.NativeMethods.DwmWindowAttribute dwAttribute, ref int pvAttribute, int cbAttribute)

Parameters

hwnd nint
dwAttribute MswUtils.NativeMethods.DwmWindowAttribute
pvAttribute int
cbAttribute int

Returns

int

DwmSetWindowAttribute(nint, DwmWindowAttribute, nint, int)

Sets a Desktop Window Manager (DWM) window attribute by pointer.

public static extern int DwmSetWindowAttribute(nint window, MswUtils.NativeMethods.DwmWindowAttribute attribute, nint valuePointer, int valuePointerSize)

Parameters

window nint

A handle to the window for which to set the attribute.

attribute MswUtils.NativeMethods.DwmWindowAttribute

The DWM attribute to set.

valuePointer nint

A pointer to the value for the attribute.

valuePointerSize int

The size, in bytes, of the value pointed to by valuePointer.

Returns

int

An HRESULT-like integer result. Zero (S_OK) typically indicates success.