VerLanguageName function Null safety version

int VerLanguageName (
  1. int wLang,
  2. Pointer<Utf16> szLang,
  3. int cchLang
)

Retrieves a description string for the language associated with a specified binary Microsoft language identifier.

DWORD VerLanguageNameW(
  DWORD  wLang,
  LPWSTR szLang,
  DWORD  cchLang
);

Implementation

int VerLanguageName(int wLang, Pointer<Utf16> szLang, int cchLang) {
  final _VerLanguageName = _version.lookupFunction<
      Uint32 Function(Uint32 wLang, Pointer<Utf16> szLang, Uint32 cchLang),
      int Function(
          int wLang, Pointer<Utf16> szLang, int cchLang)>('VerLanguageNameW');
  return _VerLanguageName(wLang, szLang, cchLang);
}