Author: winesync Date: Sat Sep 2 02:47:57 2006 New Revision: 23876
URL: http://svn.reactos.org/svn/reactos?rev=23876&view=rev Log: Autosyncing with Wine HEAD
Added: trunk/reactos/dll/win32/sensapi/sensapi.c (with props) trunk/reactos/dll/win32/sensapi/sensapi.spec (with props) trunk/reactos/include/psdk/sensapi.h (with props) trunk/reactos/include/psdk/sensevts.h (with props) Modified: trunk/reactos/dll/win32/sensapi/sensapi.rbuild trunk/reactos/media/doc/README.WINE
Added: trunk/reactos/dll/win32/sensapi/sensapi.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sensapi/sensapi.c... ============================================================================== --- trunk/reactos/dll/win32/sensapi/sensapi.c (added) +++ trunk/reactos/dll/win32/sensapi/sensapi.c Sat Sep 2 02:47:57 2006 @@ -1,0 +1,86 @@ +/* + * Implementation of System Event Notification Service Library (sensapi.dll) + * + * Copyright 2005 Steven Edwards for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + * Notes: + * The System Event Notification Service reports the status of network + * connections. For Wine we just report that we are always connected. + */ + +#include "config.h" + +#include <stdarg.h> +#include <stdio.h> + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" +#include "wingdi.h" +#include "winuser.h" +#include "ole2.h" +#include "sensevts.h" +#include "sensapi.h" + +#include "uuids.h" + +#include "wine/unicode.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(sensapi); + +HMODULE SENSAPI_hModule = 0; + +BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) { + case DLL_PROCESS_ATTACH: + { + DisableThreadLibraryCalls(hinstDLL); + SENSAPI_hModule = hinstDLL; + break; + } + case DLL_PROCESS_DETACH: + { + break; + } + } + + return TRUE; +} + +BOOL WINAPI IsDestinationReachableA(LPCSTR lpszDestination, LPQOCINFO lpQOCInfo) +{ + FIXME("%s,%p\n", lpszDestination, lpQOCInfo); + return TRUE; +} +BOOL WINAPI IsDestinationReachableW(LPCWSTR lpszDestination, LPQOCINFO lpQOCInfo) +{ + FIXME("%s,%p\n", debugstr_w(lpszDestination), lpQOCInfo); + return TRUE; +} + +BOOL WINAPI IsNetworkAlive(LPDWORD lpdwFlags) +{ + TRACE("yes, using LAN type network.\n"); + if (lpdwFlags) + *lpdwFlags = NETWORK_ALIVE_LAN; + return TRUE; +}
Propchange: trunk/reactos/dll/win32/sensapi/sensapi.c ------------------------------------------------------------------------------ svn:eol-style = native
Modified: trunk/reactos/dll/win32/sensapi/sensapi.rbuild URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sensapi/sensapi.r... ============================================================================== --- trunk/reactos/dll/win32/sensapi/sensapi.rbuild (original) +++ trunk/reactos/dll/win32/sensapi/sensapi.rbuild Sat Sep 2 02:47:57 2006 @@ -1,3 +1,16 @@ -<module name="sensapi" type="win32dll" baseaddress="${BASEADDRESS_SENSAPI}" installbase="system32" installname="sensapi.dll"> +<module name="sensapi" type="win32dll" baseaddress="${BASEADDRESS_SENSAPI}" installbase="system32" installname="sensapi.dll" allowwarnings="true"> + <importlibrary definition="sensapi.spec.def" /> + <include base="sensapi">.</include> + <include base="ReactOS">include/reactos/wine</include> + <define name="__REACTOS__" /> + <define name="__WINESRC__" /> + <define name="__USE_W32API" /> + <define name="_WIN32_IE">0x600</define> + <define name="_WIN32_WINNT">0x501</define> + <define name="WINVER">0x501</define> + <library>wine</library> + <library>kernel32</library> + <library>ntdll</library> <file>sensapi.c</file> -</module> + <file>sensapi.spec</file> +</module>
Added: trunk/reactos/dll/win32/sensapi/sensapi.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/sensapi/sensapi.s... ============================================================================== --- trunk/reactos/dll/win32/sensapi/sensapi.spec (added) +++ trunk/reactos/dll/win32/sensapi/sensapi.spec Sat Sep 2 02:47:57 2006 @@ -1,0 +1,3 @@ +@ stdcall IsDestinationReachableA(str ptr) +@ stdcall IsDestinationReachableW(wstr ptr) +@ stdcall IsNetworkAlive(ptr)
Propchange: trunk/reactos/dll/win32/sensapi/sensapi.spec ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/include/psdk/sensapi.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/sensapi.h?rev=... ============================================================================== --- trunk/reactos/include/psdk/sensapi.h (added) +++ trunk/reactos/include/psdk/sensapi.h Sat Sep 2 02:47:57 2006 @@ -1,0 +1,47 @@ +/* + * Copyright (C) 2005 Steven Edwards + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __SENSAPI_H__ +#define __SENSAPI_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#define NETWORK_ALIVE_LAN 1 +#define NETWORK_ALIVE_WAN 2 +#define NETWORK_ALIVE_AOL 4 + +typedef struct tagQOCINFO +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwInSpeed; + DWORD dwOutSpeed; +} QOCINFO, *LPQOCINFO; + +BOOL WINAPI IsDestinationReachableA(LPCSTR lpszDestination, LPQOCINFO lpQOCInfo); +BOOL WINAPI IsDestinationReachableW(LPCWSTR lpszDestination, LPQOCINFO lpQOCInfo); +#define IsDestinationReachable WINELIB_NAME_AW(IsDestinationReachable) +BOOL WINAPI IsNetworkAlive(LPDWORD lpdwFlags); + +#ifdef __cplusplus +} +#endif + +#endif /* __SENSAPI_H__ */
Propchange: trunk/reactos/include/psdk/sensapi.h ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/include/psdk/sensevts.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/sensevts.h?rev... ============================================================================== (empty)
Propchange: trunk/reactos/include/psdk/sensevts.h ------------------------------------------------------------------------------ svn:eol-style = native
Modified: trunk/reactos/media/doc/README.WINE URL: http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=2... ============================================================================== --- trunk/reactos/media/doc/README.WINE (original) +++ trunk/reactos/media/doc/README.WINE Sat Sep 2 02:47:57 2006 @@ -68,6 +68,7 @@ reactos/dll/win32/riched20 # Synced to Wine-0_9_5 reactos/dll/win32/riched32 # Autosync reactos/dll/win32/rpcrt4 # Synced to Wine-0_9_10 +reactos/dll/win32/sensapi # Autosync reactos/dll/win32/setupapi # Forked at Wine-20050524 reactos/dll/win32/shell32 # Synced to Wine-0_9_5 reactos/dll/win32/shdocvw # Synced to Wine-0_9_5