Interface Dwmapi

All Superinterfaces:
com.sun.jna.Library

public interface Dwmapi extends com.sun.jna.Library
The Dwmapi interface provides access to functions in the Dwmapi.dll library, which is used for Desktop Window Manager (DWM) composition.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.jna.Library

    com.sun.jna.Library.Handler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Dwmapi
     

    Fields inherited from interface com.sun.jna.Library

    OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    DwmSetWindowAttribute(com.sun.jna.platform.win32.WinDef.HWND hwnd, int dwAttribute, com.sun.jna.PointerType pvAttribute, int cbAttribute)
    Sets the value of a specified attribute for a window.
  • Field Details

    • INSTANCE

      static final Dwmapi INSTANCE
  • Method Details

    • DwmSetWindowAttribute

      int DwmSetWindowAttribute(com.sun.jna.platform.win32.WinDef.HWND hwnd, int dwAttribute, com.sun.jna.PointerType pvAttribute, int cbAttribute)
      Sets the value of a specified attribute for a window.
      Parameters:
      hwnd - The handle to the window.
      dwAttribute - The attribute to set.
      pvAttribute - The new value of the attribute.
      cbAttribute - The size, in bytes, of the attribute value.
      Returns:
      If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.