57 references to Kernel32
System.Private.CoreLib (57)
LibraryImports.g.cs (2)
4970
internal static unsafe partial bool GetNLSVersionEx(int function, string localeName, global::Interop.
Kernel32
.NlsVersionInfoEx* lpVersionInformation)
4985
static extern unsafe int __PInvoke(int __function_native, ushort* __localeName_native, global::Interop.
Kernel32
.NlsVersionInfoEx* __lpVersionInformation_native);
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (5)
18
while ((length = Interop.
Kernel32
.GetEnvironmentVariable(variable, ref builder.GetPinnableReference(), (uint)builder.Capacity)) > builder.Capacity)
37
uint length = Interop.
Kernel32
.GetEnvironmentVariable(variable, ref MemoryMarshal.GetReference(span), (uint)span.Length);
45
if (!Interop.
Kernel32
.SetEnvironmentVariable(variable, value))
84
char* stringPtr = Interop.
Kernel32
.GetEnvironmentStringsW();
129
Interop.BOOL success = Interop.
Kernel32
.FreeEnvironmentStringsW(stringPtr);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (2)
30
return Interop.
Kernel32
.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType | CAL_RETURN_NUMBER, IntPtr.Zero, 0, out data) != 0;
40
int ret = Interop.
Kernel32
.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType, (IntPtr)buffer, BUFFER_LENGTH, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (20)
27
int ret = Interop.
Kernel32
.LCMapStringEx(cultureName, Interop.
Kernel32
.LCMAP_SORTHANDLE, null, 0, &handle, IntPtr.Size, null, null, IntPtr.Zero);
35
ret = Interop.
Kernel32
.LCMapStringEx(null, Interop.
Kernel32
.LCMAP_HASH, &a, 1, &hashValue, sizeof(int), null, null, handle);
61
int ret = Interop.
Kernel32
.FindStringOrdinal(
128
int sortKeyLength = Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
150
if (Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
187
int result = Interop.
Kernel32
.CompareStringOrdinal(char1, count1, char2, count2, bIgnoreCase: true);
225
int result = Interop.
Kernel32
.CompareStringEx(
277
int result = Interop.
Kernel32
.FindNLSStringEx(
387
int sortKeyLength = Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
401
if (Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
449
actualSortKeyLength = Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
501
sortKeyLength = Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
529
return Interop.
Kernel32
.IsNLSDefinedString(Interop.
Kernel32
.COMPARE_STRING, 0, IntPtr.Zero, pText, text.Length);
579
Interop.
Kernel32
.NlsVersionInfoEx nlsVersion = default;
580
nlsVersion.dwNLSVersionInfoSize = sizeof(Interop.
Kernel32
.NlsVersionInfoEx);
581
Interop.
Kernel32
.GetNLSVersionEx(Interop.
Kernel32
.COMPARE_STRING, _sortName, &nlsVersion);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (27)
34
field |= Interop.
Kernel32
.LOCALE_RETURN_NUMBER;
45
return Interop.
Kernel32
.GetLocaleInfoEx(lpLocaleName, lcType, lpLCData, cchData);
73
lctype |= Interop.
Kernel32
.LOCALE_NOUSEROVERRIDE;
92
return GetLocaleInfoExInt(name, Interop.
Kernel32
.LOCALE_ICONSTRUCTEDLOCALE) != 1;
99
return ReescapeWin32String(GetLocaleInfoFromLCType(_sRealName, Interop.
Kernel32
.LOCALE_STIMEFORMAT, _bUseOverrides));
107
int result = GetLocaleInfoExInt(_sRealName, Interop.
Kernel32
.LOCALE_IFIRSTDAYOFWEEK | (!_bUseOverrides ? Interop.
Kernel32
.LOCALE_NOUSEROVERRIDE : 0));
127
Interop.
Kernel32
.EnumSystemLocalesEx(&EnumSystemLocalesProc, Interop.
Kernel32
.LOCALE_SPECIFICDATA | Interop.
Kernel32
.LOCALE_SUPPLEMENTAL, &context, IntPtr.Zero);
182
lctype |= Interop.
Kernel32
.LOCALE_NOUSEROVERRIDE;
356
string? regionName = GetLocaleInfoEx(cultureName, Interop.
Kernel32
.LOCALE_SISO3166CTRYNAME);
415
Interop.
Kernel32
.EnumTimeFormatsEx(&EnumTimeCallback, localeName, dwFlags, &data);
430
uint lcType = (dwFlags == Interop.
Kernel32
.TIME_NOSECONDS) ? Interop.
Kernel32
.LOCALE_SSHORTTIME : Interop.
Kernel32
.LOCALE_STIMEFORMAT;
453
return Interop.
Kernel32
.LocaleNameToLCID(cultureName, Interop.
Kernel32
.LOCALE_ALLOW_NEUTRAL_NAMES);
472
flags |= Interop.
Kernel32
.LOCALE_NEUTRALDATA | Interop.
Kernel32
.LOCALE_SPECIFICDATA;
478
flags |= Interop.
Kernel32
.LOCALE_NEUTRALDATA;
483
flags |= Interop.
Kernel32
.LOCALE_SPECIFICDATA;
488
flags |= Interop.
Kernel32
.LOCALE_SUPPLEMENTAL;
493
flags |= Interop.
Kernel32
.LOCALE_SUPPLEMENTAL;
501
Interop.
Kernel32
.EnumSystemLocalesEx(&EnumAllSystemLocalesProc, flags, &context, IntPtr.Zero);
529
Interop.
Kernel32
.EnumSystemLocalesEx(&EnumAllSystemLocalesProc, Interop.
Kernel32
.LOCALE_REPLACEMENT, &context, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.Nls.cs (1)
27
int ret = Interop.
Kernel32
.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _textInfoName,