VerLanguageName function Null safety kernel32

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


int VerLanguageName(int wLang, Pointer<Utf16> szLang, int cchLang) {
  final _VerLanguageName = _kernel32.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);