PATCH: sensap IsNetworkAlive
Marcus Meissner
meissner at suse.de
Fri Aug 26 05:08:36 CDT 2005
On Fri, Aug 26, 2005 at 11:20:21AM +0200, Marcus Meissner wrote:
> Hi,
>
> Ciao, Marcus
> Changelog:
> IsNetworkAlive() enhanced, always reports LAN.
_RAS is incorrect, must be _WAN. Thanks Vijay!
Ciao, Marcus
Index: include/sensapi.h
===================================================================
RCS file: /home/wine/wine/include/sensapi.h,v
retrieving revision 1.1
diff -u -r1.1 sensapi.h
--- include/sensapi.h 28 Jan 2005 11:41:23 -0000 1.1
+++ include/sensapi.h 25 Aug 2005 19:31:33 -0000
@@ -23,6 +23,10 @@
extern "C" {
#endif
+#define NETWORK_ALIVE_LAN 1
+#define NETWORK_ALIVE_WAN 2
+#define NETWORK_ALIVE_AOL 4
+
typedef struct tagQOCINFO
{
DWORD dwSize;
Index: dlls/sensapi/sensapi.c
===================================================================
RCS file: /home/wine/wine/dlls/sensapi/sensapi.c,v
retrieving revision 1.2
diff -u -r1.2 sensapi.c
--- dlls/sensapi/sensapi.c 11 Aug 2005 10:32:22 -0000 1.2
+++ dlls/sensapi/sensapi.c 25 Aug 2005 19:31:33 -0000
@@ -79,6 +79,8 @@
BOOL WINAPI IsNetworkAlive(LPDWORD lpdwFlags)
{
- FIXME("%p\n", lpdwFlags);
+ TRACE("yes, using LAN type network.\n");
+ if (lpdwFlags)
+ *lpdwFlags = NETWORK_ALIVE_LAN;
return TRUE;
}
More information about the wine-patches
mailing list