GetCurrentThemeName function uxtheme

int GetCurrentThemeName(
  1. Pointer<Utf16> pszThemeFileName,
  2. int cchMaxNameChars,
  3. Pointer<Utf16> pszColorBuff,
  4. int cchMaxColorChars,
  5. Pointer<Utf16> pszSizeBuff,
  6. int cchMaxSizeChars,
)

Retrieves the name of the current visual style, and optionally retrieves the color scheme name and size name.

HRESULT GetCurrentThemeName(
  LPWSTR pszThemeFileName,
  int    cchMaxNameChars,
  LPWSTR pszColorBuff,
  int    cchMaxColorChars,
  LPWSTR pszSizeBuff,
  int    cchMaxSizeChars
);

Implementation

int GetCurrentThemeName(
        Pointer<Utf16> pszThemeFileName,
        int cchMaxNameChars,
        Pointer<Utf16> pszColorBuff,
        int cchMaxColorChars,
        Pointer<Utf16> pszSizeBuff,
        int cchMaxSizeChars) =>
    _GetCurrentThemeName(pszThemeFileName, cchMaxNameChars, pszColorBuff,
        cchMaxColorChars, pszSizeBuff, cchMaxSizeChars);