mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 21:11:54 +00:00
[KERNEL32] Add CompareStringOrdinal from wine-3.21
This commit is contained in:
parent
dafa00b554
commit
3a0b53386c
3 changed files with 37 additions and 2 deletions
|
@ -87,7 +87,7 @@
|
||||||
@ stdcall CompareFileTime(ptr ptr)
|
@ stdcall CompareFileTime(ptr ptr)
|
||||||
@ stdcall CompareStringA(long long str long str long)
|
@ stdcall CompareStringA(long long str long str long)
|
||||||
@ stdcall -version=0x600+ CompareStringEx(wstr long wstr long wstr long ptr ptr ptr)
|
@ stdcall -version=0x600+ CompareStringEx(wstr long wstr long wstr long ptr ptr ptr)
|
||||||
@ stdcall -stub -version=0x600+ CompareStringOrdinal(wstr long wstr long long)
|
@ stdcall -version=0x600+ CompareStringOrdinal(wstr long wstr long long)
|
||||||
@ stdcall CompareStringW(long long wstr long wstr long)
|
@ stdcall CompareStringW(long long wstr long wstr long)
|
||||||
@ stdcall ConnectNamedPipe(long ptr)
|
@ stdcall ConnectNamedPipe(long ptr)
|
||||||
;@ stdcall -arch=x86_64 ConsoleIMERoutine()
|
;@ stdcall -arch=x86_64 ConsoleIMERoutine()
|
||||||
|
|
|
@ -33,7 +33,7 @@ DEBUG_CHANNEL(nls);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef WINVER
|
#undef WINVER
|
||||||
#define WINVER 0x600
|
#define WINVER DLL_EXPORT_VERSION
|
||||||
|
|
||||||
/* From winnls.h */
|
/* From winnls.h */
|
||||||
#define LOCALE_NAME_USER_DEFAULT NULL
|
#define LOCALE_NAME_USER_DEFAULT NULL
|
||||||
|
@ -2765,6 +2765,29 @@ INT WINAPI CompareStringA(LCID lcid, DWORD flags,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (WINVER >= 0x0600)
|
||||||
|
/******************************************************************************
|
||||||
|
* CompareStringOrdinal (KERNEL32.@)
|
||||||
|
*/
|
||||||
|
INT WINAPI CompareStringOrdinal(const WCHAR *str1, INT len1, const WCHAR *str2, INT len2, BOOL ignore_case)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
if (!str1 || !str2)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (len1 < 0) len1 = strlenW(str1);
|
||||||
|
if (len2 < 0) len2 = strlenW(str2);
|
||||||
|
|
||||||
|
ret = RtlCompareUnicodeStrings( str1, len1, str2, len2, ignore_case );
|
||||||
|
if (ret < 0) return CSTR_LESS_THAN;
|
||||||
|
if (ret > 0) return CSTR_GREATER_THAN;
|
||||||
|
return CSTR_EQUAL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __REACTOS__
|
#ifdef __REACTOS__
|
||||||
HANDLE NLS_RegOpenKey(HANDLE hRootKey, LPCWSTR szKeyName)
|
HANDLE NLS_RegOpenKey(HANDLE hRootKey, LPCWSTR szKeyName)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -2123,6 +2123,18 @@ RtlCompareUnicodeString(
|
||||||
BOOLEAN CaseInsensitive
|
BOOLEAN CaseInsensitive
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_Must_inspect_result_
|
||||||
|
NTSYSAPI
|
||||||
|
LONG
|
||||||
|
NTAPI
|
||||||
|
RtlCompareUnicodeStrings(
|
||||||
|
_In_reads_(String1Length) PCWCH String1,
|
||||||
|
_In_ SIZE_T String1Length,
|
||||||
|
_In_reads_(String2Length) PCWCH String2,
|
||||||
|
_In_ SIZE_T String2Length,
|
||||||
|
_In_ BOOLEAN CaseInSensitive
|
||||||
|
);
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue