Interface LibDwmApi

All Superinterfaces:
com.sun.jna.Library

public interface LibDwmApi extends com.sun.jna.Library
JNA interface to the native LibDwm (Desktop Window Manager) library.

This library is only available on Windows platforms.

The functionality provided by this library may be helpful especially when working with full-screen exclusive mode in Java which suffers from numerous idiosyncrasies on Windows, some of which can be mitigated by ensuring that desktop window composition is disabled. Disabling composition can be done at the operating system level, but is more convenient for end-users if the application itself does it.

This class may be removed in future versions of vlcj due to it's uselessness.

  • 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 int
    Disable composition.
    static final int
    Enable composition.
    static final LibDwmApi
    Native library instance.
    static final int
    API success code.

    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_TYPE_MAPPER
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sun.jna.platform.win32.WinNT.HRESULT
    DwmEnableComposition(int uCompositionAction)
    Enable/disable desktop window composition.
    com.sun.jna.platform.win32.WinNT.HRESULT
    DwmIsCompositionEnabled(com.sun.jna.ptr.IntByReference pfEnabled)
    Check whether or not desktop window composition is currently enabled.
  • Field Details

    • INSTANCE

      static final LibDwmApi INSTANCE
      Native library instance.
    • DWM_EC_DISABLECOMPOSITION

      static final int DWM_EC_DISABLECOMPOSITION
      Disable composition.
      See Also:
    • DWM_EC_ENABLECOMPOSITION

      static final int DWM_EC_ENABLECOMPOSITION
      Enable composition.
      See Also:
    • S_OK

      static final int S_OK
      API success code.
      See Also:
  • Method Details

    • DwmEnableComposition

      com.sun.jna.platform.win32.WinNT.HRESULT DwmEnableComposition(int uCompositionAction)
      Enable/disable desktop window composition.
      Parameters:
      uCompositionAction - enable/disable, i.e. DWM_EC_ENABLECOMPOSITION or DWM_EC_DISABLECOMPOSITION
      Returns:
      S_OK or HRESULT error code
    • DwmIsCompositionEnabled

      com.sun.jna.platform.win32.WinNT.HRESULT DwmIsCompositionEnabled(com.sun.jna.ptr.IntByReference pfEnabled)
      Check whether or not desktop window composition is currently enabled.
      Parameters:
      pfEnabled - pointer to enabled/disabled flag.
      Returns:
      S_OK or HRESULT error code