GetLocaleInfoEx function Null safety kernel32

int GetLocaleInfoEx(
  1. Pointer<Utf16> lpLocaleName,
  2. int LCType,
  3. Pointer<Utf16> lpLCData,
  4. int cchData
)

Retrieves information about a locale specified by name.

int GetLocaleInfoEx(
  LPCWSTR lpLocaleName,
  LCTYPE  LCType,
  LPWSTR  lpLCData,
  int     cchData
);

Implementation

int GetLocaleInfoEx(Pointer<Utf16> lpLocaleName, int LCType,
    Pointer<Utf16> lpLCData, int cchData) {
  final _GetLocaleInfoEx = _kernel32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpLocaleName, Uint32 LCType,
          Pointer<Utf16> lpLCData, Int32 cchData),
      int Function(Pointer<Utf16> lpLocaleName, int LCType,
          Pointer<Utf16> lpLCData, int cchData)>('GetLocaleInfoEx');
  return _GetLocaleInfoEx(lpLocaleName, LCType, lpLCData, cchData);
}