Commit 77973e7e authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Implement IsApiSetImplemented().

parent cb2fb8c2
......@@ -1469,7 +1469,6 @@ static void test_apisets(void)
return;
}
if (!pApiSetQueryApiSetPresenceEx) win_skip( "ApiSetQueryApiSetPresenceEx not implemented\n" );
todo_wine
if (!pIsApiSetImplemented) win_skip( "IsApiSetImplemented not implemented\n" );
for (i = 0; i < ARRAY_SIZE(tests); i++)
......
......@@ -868,6 +868,7 @@
# @ stub InternetTimeToSystemTimeW
# @ stub InvalidateAppModelVersionCache
@ stub InvalidateTzSpecificCache
@ stdcall IsApiSetImplemented(str)
@ stdcall IsCharAlphaA(long)
@ stdcall IsCharAlphaNumericA(long)
@ stdcall IsCharAlphaNumericW(long)
......
......@@ -468,6 +468,22 @@ FARPROC WINAPI DECLSPEC_HOTPATCH GetProcAddress( HMODULE module, LPCSTR function
/***********************************************************************
* IsApiSetImplemented (kernelbase.@)
*/
BOOL WINAPI IsApiSetImplemented( LPCSTR name )
{
UNICODE_STRING str;
NTSTATUS status;
BOOLEAN in_schema, present;
if (!RtlCreateUnicodeStringFromAsciiz( &str, name )) return FALSE;
status = ApiSetQueryApiSetPresenceEx( &str, &in_schema, &present );
RtlFreeUnicodeString( &str );
return !status && present;
}
/***********************************************************************
* LoadLibraryA (kernelbase.@)
*/
HMODULE WINAPI DECLSPEC_HOTPATCH LoadLibraryA( LPCSTR name )
......
......@@ -2406,6 +2406,7 @@ WINBASEAPI VOID WINAPI InitOnceInitialize(PINIT_ONCE);
WINBASEAPI PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER);
WINBASEAPI PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER);
WINBASEAPI PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER, PSLIST_ENTRY);
WINBASEAPI BOOL WINAPI IsApiSetImplemented(LPCSTR);
WINBASEAPI BOOL WINAPI IsBadCodePtr(FARPROC);
WINBASEAPI BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT_PTR);
WINBASEAPI BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT_PTR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment