stubs for job control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog:
* stubs for job control
Index: dlls/kernel/sync.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/sync.c,v
retrieving revision 1.43
diff -u -r1.43 sync.c
--- dlls/kernel/sync.c	30 Oct 2003 23:08:23 -0000	1.43
+++ dlls/kernel/sync.c	31 Oct 2003 06:07:45 -0000
@@ -1553,6 +1553,56 @@
     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 INVALID_HANDLE_VALUE;
+}
+
+/******************************************************************************
+ *		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 INVALID_HANDLE_VALUE;
+        }
+        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__
 
 /***********************************************************************
Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.115
diff -u -r1.115 kernel32.spec
--- dlls/kernel/kernel32.spec	28 Oct 2003 21:22:51 -0000	1.115
+++ dlls/kernel/kernel32.spec	31 Oct 2003 06:07:45 -0000
@@ -1043,8 +1043,9 @@
 @ stdcall SetThreadExecutionState(long)
 
 # Windows 2000, Terminal Server 4.0 SP4 functions
-@ stub AssignProcessToJobObject
-@ stub CreateJobObjectW
+@ stdcall AssignProcessToJobObject(ptr ptr)
+@ stdcall CreateJobObjectW(ptr wstr)
+@ stdcall CreateJobObjectA(ptr str)
 @ stdcall CreateTimerQueue ()
 @ stdcall CreateTimerQueueTimer(ptr long ptr ptr long long long)
 @ stdcall DeleteTimerQueueEx (long long)

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux