Method DwmSetWindowAttribute
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
hwndnintdwAttributeMswUtils.NativeMethods.DwmWindowAttributepvAttributeintcbAttributeint
Returns
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
windownintA handle to the window for which to set the attribute.
attributeMswUtils.NativeMethods.DwmWindowAttributeThe DWM attribute to set.
valuePointernintA pointer to the value for the attribute.
valuePointerSizeintThe size, in bytes, of the value pointed to by
valuePointer.
Returns
- int
An HRESULT-like integer result. Zero (S_OK) typically indicates success.