ChangeLog: * Move the mailslot stubs into the dlls/kernel directory
Index: dlls/kernel/kernel32.spec =================================================================== RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v retrieving revision 1.106 diff -u -r1.106 kernel32.spec --- dlls/kernel/kernel32.spec 11 Sep 2003 03:00:11 -0000 1.106 +++ dlls/kernel/kernel32.spec 14 Sep 2003 11:07:28 -0000 @@ -772,7 +772,7 @@ @ stdcall SetLocalTime(ptr) @ stdcall SetLocaleInfoA(long long str) @ stdcall SetLocaleInfoW(long long wstr) -@ stub SetMailslotInfo +@ stdcall SetMailslotInfo(long long) @ stub SetMessageWaitingIndicator @ stdcall SetNamedPipeHandleState(long ptr ptr ptr) @ stdcall SetPriorityClass(long long) Index: dlls/kernel/sync.c =================================================================== RCS file: /home/wine/wine/dlls/kernel/sync.c,v retrieving revision 1.37 diff -u -r1.37 sync.c --- dlls/kernel/sync.c 5 Sep 2003 23:08:36 -0000 1.37 +++ dlls/kernel/sync.c 14 Sep 2003 11:07:29 -0000 @@ -1178,6 +1178,98 @@ } +/****************************************************************************** + * CreateMailslotA [KERNEL32.@] + */ +HANDLE WINAPI CreateMailslotA( LPCSTR lpName, DWORD nMaxMessageSize, + DWORD lReadTimeout, LPSECURITY_ATTRIBUTES sa ) +{ + DWORD len; + HANDLE handle; + LPWSTR name = NULL; + + TRACE("%s %ld %ld %p\n", debugstr_a(lpName), + nMaxMessageSize, lReadTimeout, sa); + + if( lpName ) + { + len = MultiByteToWideChar( CP_ACP, 0, lpName, -1, NULL, 0 ); + name = HeapAlloc( GetProcessHeap(), 0, len*sizeof(WCHAR) ); + MultiByteToWideChar( CP_ACP, 0, lpName, -1, name, len ); + } + + handle = CreateMailslotW( name, nMaxMessageSize, lReadTimeout, sa ); + + if( name ) + HeapFree( GetProcessHeap(), 0, name ); + + return handle; +} + + +/****************************************************************************** + * CreateMailslotW [KERNEL32.@] Creates a mailslot with specified name + * + * PARAMS + * lpName [I] Pointer to string for mailslot name + * nMaxMessageSize [I] Maximum message size + * lReadTimeout [I] Milliseconds before read time-out + * sa [I] Pointer to security structure + * + * RETURNS + * Success: Handle to mailslot + * Failure: INVALID_HANDLE_VALUE + */ +HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize, + DWORD lReadTimeout, LPSECURITY_ATTRIBUTES sa ) +{ + FIXME("(%s,%ld,%ld,%p): stub\n", debugstr_w(lpName), + nMaxMessageSize, lReadTimeout, sa); + return (HANDLE)1; +} + + +/****************************************************************************** + * GetMailslotInfo [KERNEL32.@] Retrieves info about specified mailslot + * + * PARAMS + * hMailslot [I] Mailslot handle + * lpMaxMessageSize [O] Address of maximum message size + * lpNextSize [O] Address of size of next message + * lpMessageCount [O] Address of number of messages + * lpReadTimeout [O] Address of read time-out + * + * RETURNS + * Success: TRUE + * Failure: FALSE + */ +BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize, + LPDWORD lpNextSize, LPDWORD lpMessageCount, + LPDWORD lpReadTimeout ) +{ + FIXME("(%p): stub\n",hMailslot); + if (lpMaxMessageSize) *lpMaxMessageSize = (DWORD)NULL; + if (lpNextSize) *lpNextSize = (DWORD)NULL; + if (lpMessageCount) *lpMessageCount = (DWORD)NULL; + if (lpReadTimeout) *lpReadTimeout = (DWORD)NULL; + return TRUE; +} + + +/****************************************************************************** + * SetMailslotInfo [KERNEL32.@] Sets the read timeout of a specified mailslot + * + * RETURNS + * Success: TRUE + * Failure: FALSE + */ +BOOL WINAPI SetMailslotInfo( HANDLE hMailslot, DWORD dwReadTimeout) +{ + FIXME("%p %d: stub\n", hMailslot, dwReadTimeout); + return TRUE; +} + + #ifdef __i386__ /*********************************************************************** Index: win32/newfns.c =================================================================== RCS file: /home/wine/wine/win32/newfns.c,v retrieving revision 1.50 diff -u -r1.50 newfns.c --- win32/newfns.c 5 Sep 2003 23:15:40 -0000 1.50 +++ win32/newfns.c 14 Sep 2003 11:07:29 -0000 @@ -57,67 +57,6 @@ /****************************************************************************** - * CreateMailslotA [KERNEL32.@] - */ -HANDLE WINAPI CreateMailslotA( LPCSTR lpName, DWORD nMaxMessageSize, - DWORD lReadTimeout, LPSECURITY_ATTRIBUTES sa) -{ - FIXME("(%s,%ld,%ld,%p): stub\n", debugstr_a(lpName), - nMaxMessageSize, lReadTimeout, sa); - return (HANDLE)1; -} - - -/****************************************************************************** - * CreateMailslotW [KERNEL32.@] Creates a mailslot with specified name - * - * PARAMS - * lpName [I] Pointer to string for mailslot name - * nMaxMessageSize [I] Maximum message size - * lReadTimeout [I] Milliseconds before read time-out - * sa [I] Pointer to security structure - * - * RETURNS - * Success: Handle to mailslot - * Failure: INVALID_HANDLE_VALUE - */ -HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize, - DWORD lReadTimeout, LPSECURITY_ATTRIBUTES sa ) -{ - FIXME("(%s,%ld,%ld,%p): stub\n", debugstr_w(lpName), - nMaxMessageSize, lReadTimeout, sa); - return (HANDLE)1; -} - - -/****************************************************************************** - * GetMailslotInfo [KERNEL32.@] Retrieves info about specified mailslot - * - * PARAMS - * hMailslot [I] Mailslot handle - * lpMaxMessageSize [O] Address of maximum message size - * lpNextSize [O] Address of size of next message - * lpMessageCount [O] Address of number of messages - * lpReadTimeout [O] Address of read time-out - * - * RETURNS - * Success: TRUE - * Failure: FALSE - */ -BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize, - LPDWORD lpNextSize, LPDWORD lpMessageCount, - LPDWORD lpReadTimeout ) -{ - FIXME("(%p): stub\n",hMailslot); - if (lpMaxMessageSize) *lpMaxMessageSize = (DWORD)NULL; - if (lpNextSize) *lpNextSize = (DWORD)NULL; - if (lpMessageCount) *lpMessageCount = (DWORD)NULL; - if (lpReadTimeout) *lpReadTimeout = (DWORD)NULL; - return TRUE; -} - - -/****************************************************************************** * GetCompressedFileSizeA [KERNEL32.@] * * NOTES