DwmApiDwmSetWindowAttribute(IntPtr, DwmWindowAttribute, IntPtr, UInt32) Method
Sets the value of non-client rendering attributes for 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 DwmSetWindowAttribute(
IntPtr hWnd,
DwmWindowAttribute attributeToSet,
IntPtr attributeValue,
uint attributeSize
)
<DllImportAttribute("DwmApi.dll">]
Public Shared Function DwmSetWindowAttribute (
hWnd As IntPtr,
attributeToSet As DwmWindowAttribute,
attributeValue As IntPtr,
attributeSize As UInteger
) As Integer
Dim hWnd As IntPtr
Dim attributeToSet As DwmWindowAttribute
Dim attributeValue As IntPtr
Dim attributeSize As UInteger
Dim returnValue As Integer
returnValue = DwmApi.DwmSetWindowAttribute(hWnd,
attributeToSet, attributeValue,
attributeSize)
public:
[DllImportAttribute(L"DwmApi.dll")]
static int DwmSetWindowAttribute(
IntPtr hWnd,
DwmWindowAttribute attributeToSet,
IntPtr attributeValue,
unsigned int attributeSize
)
[<DllImportAttribute("DwmApi.dll")>]
static member DwmSetWindowAttribute :
hWnd : IntPtr *
attributeToSet : DwmWindowAttribute *
attributeValue : IntPtr *
attributeSize : uint32 -> int
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
The handle to the window that will receive the attributes.
- attributeToSet DwmWindowAttribute
-
A single DwmWindowAttribute flag to apply to the window.
This parameter specifies the attribute and the attributeValue parameter points to the value of that attribute.
- attributeValue IntPtr
-
A pointer to the value of the attribute specified in the attributeToSet parameter.
Note that different DwmWindowAttribute flags require different value types.
- attributeSize UInt32
-
The size, in bytes, of the value type pointed To by the attributeValue parameter.
Int32
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.