IsValidLocaleName function Null safety kernel32

int IsValidLocaleName (
  1. Pointer<Utf16> lpLocaleName
)

Determines if the specified locale name is valid for a locale that is installed or supported on the operating system.

BOOL IsValidLocaleName(
  LPCWSTR lpLocaleName
  );

Implementation

int IsValidLocaleName(Pointer<Utf16> lpLocaleName) {
  final _IsValidLocaleName = _kernel32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpLocaleName),
      int Function(Pointer<Utf16> lpLocaleName)>('IsValidLocaleName');
  return _IsValidLocaleName(lpLocaleName);
}