Commit a54d9728 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

kernel32: Forward threadpool cleanup group functions to ntdll.

parent 9f71015a
......@@ -229,8 +229,8 @@
@ stdcall CloseProfileUserMapping()
@ stub CloseSystemHandle
# @ stub CloseThreadpool
# @ stub CloseThreadpoolCleanupGroup
# @ stub CloseThreadpoolCleanupGroupMembers
@ stdcall CloseThreadpoolCleanupGroup(ptr) ntdll.TpReleaseCleanupGroup
@ stdcall CloseThreadpoolCleanupGroupMembers(ptr long ptr) ntdll.TpReleaseCleanupGroupMembers
# @ stub CloseThreadpoolIo
# @ stub CloseThreadpoolTimer
# @ stub CloseThreadpoolWait
......@@ -332,7 +332,7 @@
@ stdcall CreateTapePartition(long long long long)
@ stdcall CreateThread(ptr long ptr long long ptr)
# @ stub CreateThreadpool
# @ stub CreateThreadpoolCleanupGroup
@ stdcall CreateThreadpoolCleanupGroup()
# @ stub CreateThreadpoolIo
# @ stub CreateThreadpoolTimer
# @ stub CreateThreadpoolWait
......
......@@ -860,3 +860,23 @@ BOOL WINAPI GetThreadPreferredUILanguages( DWORD flags, PULONG count, PCZZWSTR b
*buffersize = 0;
return TRUE;
}
/***********************************************************************
* CreateThreadpoolCleanupGroup (KERNEL32.@)
*/
PTP_CLEANUP_GROUP WINAPI CreateThreadpoolCleanupGroup( void )
{
TP_CLEANUP_GROUP *group;
NTSTATUS status;
TRACE( "\n" );
status = TpAllocCleanupGroup( &group );
if (status)
{
SetLastError( RtlNtStatusToDosError(status) );
return NULL;
}
return group;
}
......@@ -2616,6 +2616,12 @@ NTSYSAPI LONGLONG WINAPI RtlLargeIntegerSubtract(LONGLONG,LONGLONG);
NTSYSAPI NTSTATUS WINAPI RtlLargeIntegerToChar(const ULONGLONG *,ULONG,ULONG,PCHAR);
#endif
/* Threadpool functions */
NTSYSAPI NTSTATUS WINAPI TpAllocCleanupGroup(TP_CLEANUP_GROUP **);
NTSYSAPI void WINAPI TpReleaseCleanupGroup(TP_CLEANUP_GROUP *);
NTSYSAPI void WINAPI TpReleaseCleanupGroupMembers(TP_CLEANUP_GROUP *,BOOL,PVOID);
/* Wine internal functions */
NTSYSAPI NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRING *unix_name_ret,
......
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