Commit 7e1f3803 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Stubs for job control.

parent 6d9350fa
......@@ -1043,8 +1043,9 @@
@ stdcall SetThreadExecutionState(long)
# Windows 2000, Terminal Server 4.0 SP4 functions
@ stub AssignProcessToJobObject
@ stub CreateJobObjectW
@ stdcall AssignProcessToJobObject(ptr ptr)
@ stdcall CreateJobObjectA(ptr str)
@ stdcall CreateJobObjectW(ptr wstr)
@ stdcall CreateTimerQueue ()
@ stdcall CreateTimerQueueTimer(ptr long ptr ptr long long long)
@ stdcall DeleteTimerQueueEx (long long)
......
......@@ -1553,6 +1553,56 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf
return FALSE;
}
/******************************************************************************
* CreateJobObjectW (KERNEL32.@)
*/
HANDLE WINAPI CreateJobObjectW( LPSECURITY_ATTRIBUTES attr, LPCWSTR name )
{
FIXME("%p %s\n", attr, debugstr_w(name) );
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/******************************************************************************
* CreateJobObjectA (KERNEL32.@)
*/
HANDLE WINAPI CreateJobObjectA( LPSECURITY_ATTRIBUTES attr, LPCSTR name )
{
LPWSTR str = NULL;
UINT len;
HANDLE r;
TRACE("%p %s\n", attr, debugstr_a(name) );
if( name )
{
len = MultiByteToWideChar( CP_ACP, 0, name, -1, NULL, 0 );
str = HeapAlloc( GetProcessHeap(), 0, len*sizeof(WCHAR) );
if( !str )
{
SetLastError( ERROR_OUTOFMEMORY );
return 0;
}
len = MultiByteToWideChar( CP_ACP, 0, name, -1, str, len );
}
r = CreateJobObjectW( attr, str );
if( str )
HeapFree( GetProcessHeap(), 0, str );
return r;
}
/******************************************************************************
* AssignProcessToJobObject (KERNEL32.@)
*/
BOOL WINAPI AssignProcessToJobObject( HANDLE hJob, HANDLE hProcess )
{
FIXME("%p %p\n", hJob, hProcess);
return TRUE;
}
#ifdef __i386__
/***********************************************************************
......
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