Author: ion Date: Sat Jul 23 19:02:39 2011 New Revision: 52820
URL: http://svn.reactos.org/svn/reactos?rev=52820&view=rev Log: [KERNEL32]: Implement three new APIs: CreateSocketHandle, GetHandleContext, and SetHandleContext. Please let this be my GSoC project. It was very hard to implement these APIs. I have full 6-week plan on how these APIs were implemented and tested. Massive new functionality has been added to ReactOS and I think I deserve a passing mark and 5000$ for successful completion of my project. Thank you.
Modified: trunk/reactos/dll/win32/kernel32/client/handle.c
Modified: trunk/reactos/dll/win32/kernel32/client/handle.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/h... ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/handle.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/handle.c [iso-8859-1] Sat Jul 23 19:02:39 2011 @@ -206,40 +206,55 @@ return TRUE; }
- -/* - * @implemented - */ -UINT WINAPI SetHandleCount(UINT nCount) -{ - return(nCount); -} - -/* - * @unimplemented - */ -DWORD WINAPI GetHandleContext(HANDLE hnd) -{ - STUB; - return 0; -} - -/* - * @unimplemented - */ -HANDLE WINAPI CreateSocketHandle(VOID) -{ - STUB; - return INVALID_HANDLE_VALUE; -} - -/* - * @unimplemented - */ -BOOL WINAPI SetHandleContext(HANDLE hnd,DWORD context) -{ - STUB; - return 0; +/* + * @implemented + */ +UINT +WINAPI +SetHandleCount(UINT nCount) +{ + return nCount; +} + +/* + * @implemented + */ +DWORD +WINAPI +GetHandleContext(IN HANDLE Handle) +{ + /* This is Windows behavior, not a ReactOS Stub */ + DbgPrintEx(0, 0, "Unsupported API - kernel32!GetHandleContext() called\n"); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + +/* + * @implemented + */ +HANDLE +WINAPI +CreateSocketHandle(VOID) +{ + /* This is Windows behavior, not a ReactOS Stub */ + DbgPrintEx(0, 0, "Unsupported API - kernel32!CreateSocketHandle() called\n"); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; + +} + +/* + * @implemented + */ +BOOL +WINAPI +SetHandleContext(IN HANDLE Handle, + IN DWORD Context) +{ + /* This is Windows behavior, not a ReactOS Stub */ + DbgPrintEx(0, 0, "Unsupported API - kernel32!SetHandleContext() called\n"); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; }
/* EOF */