GetThemeFilename

[DllImport("uxtheme.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern HRESULT GetThemeFilename(
   IntPtr hTheme,
   int iPartId,
   int iStateId,
   int iPropId,
   StringBuilder pszThemeFileName,
   int cchMaxBuffChars
);

Microsoft documentation: Link

Last updated