mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
Add a stub dll for the System Event Notification Service.
This commit is contained in:
parent
4e0c3aa551
commit
160e6479cf
@ -1640,6 +1640,7 @@ dlls/rsabase/tests/Makefile
|
||||
dlls/rsaenh/Makefile
|
||||
dlls/rsaenh/tests/Makefile
|
||||
dlls/secur32/Makefile
|
||||
dlls/sensapi/Makefile
|
||||
dlls/serialui/Makefile
|
||||
dlls/setupapi/Makefile
|
||||
dlls/shdocvw/Makefile
|
||||
|
@ -113,6 +113,7 @@ BASEDIRS = \
|
||||
rsabase \
|
||||
rsaenh \
|
||||
secur32 \
|
||||
sensapi \
|
||||
serialui \
|
||||
setupapi \
|
||||
shdocvw \
|
||||
@ -354,6 +355,7 @@ SYMLINKS_SO = \
|
||||
rsabase.dll.so \
|
||||
rsaenh.dll.so \
|
||||
secur32.dll.so \
|
||||
sensapi.dll.so \
|
||||
serialui.dll.so \
|
||||
setupapi.dll.so \
|
||||
shdocvw.dll.so \
|
||||
@ -792,6 +794,9 @@ rsaenh.dll.so: rsaenh/rsaenh.dll.so
|
||||
secur32.dll.so: secur32/secur32.dll.so
|
||||
$(RM) $@ && $(LN_S) secur32/secur32.dll.so $@
|
||||
|
||||
sensapi.dll.so: sensapi/sensapi.dll.so
|
||||
$(RM) $@ && $(LN_S) sensapi/sensapi.dll.so $@
|
||||
|
||||
serialui.dll.so: serialui/serialui.dll.so
|
||||
$(RM) $@ && $(LN_S) serialui/serialui.dll.so $@
|
||||
|
||||
@ -1087,6 +1092,7 @@ IMPORT_LIBS = \
|
||||
librsabase.$(IMPLIBEXT) \
|
||||
librsaenh.$(IMPLIBEXT) \
|
||||
libsecur32.$(IMPLIBEXT) \
|
||||
libsensapi.$(IMPLIBEXT) \
|
||||
libserialui.$(IMPLIBEXT) \
|
||||
libsetupapi.$(IMPLIBEXT) \
|
||||
libshdocvw.$(IMPLIBEXT) \
|
||||
@ -1604,6 +1610,11 @@ libsecur32.def: secur32/secur32.spec.def
|
||||
libsecur32.a: secur32/secur32.spec.def
|
||||
$(DLLTOOL) -k -l $@ -d secur32/secur32.spec.def
|
||||
|
||||
libsensapi.def: sensapi/sensapi.spec.def
|
||||
$(RM) $@ && $(LN_S) sensapi/sensapi.spec.def $@
|
||||
libsensapi.a: sensapi/sensapi.spec.def
|
||||
$(DLLTOOL) -k -l $@ -d sensapi/sensapi.spec.def
|
||||
|
||||
libserialui.def: serialui/serialui.spec.def
|
||||
$(RM) $@ && $(LN_S) serialui/serialui.spec.def $@
|
||||
libserialui.a: serialui/serialui.spec.def
|
||||
@ -1869,6 +1880,7 @@ rpcrt4/rpcrt4.spec.def: $(WINEBUILD)
|
||||
rsabase/rsabase.spec.def: $(WINEBUILD)
|
||||
rsaenh/rsaenh.spec.def: $(WINEBUILD)
|
||||
secur32/secur32.spec.def: $(WINEBUILD)
|
||||
sensapi/sensapi.spec.def: $(WINEBUILD)
|
||||
serialui/serialui.spec.def: $(WINEBUILD)
|
||||
setupapi/setupapi.spec.def: $(WINEBUILD)
|
||||
shdocvw/shdocvw.spec.def: $(WINEBUILD)
|
||||
@ -2020,6 +2032,7 @@ rpcrt4/rpcrt4.dll.so: rpcrt4
|
||||
rsabase/rsabase.dll.so: rsabase
|
||||
rsaenh/rsaenh.dll.so: rsaenh
|
||||
secur32/secur32.dll.so: secur32
|
||||
sensapi/sensapi.dll.so: sensapi
|
||||
serialui/serialui.dll.so: serialui
|
||||
setupapi/setupapi.dll.so: setupapi
|
||||
shdocvw/shdocvw.dll.so: shdocvw
|
||||
|
3
dlls/sensapi/.cvsignore
Normal file
3
dlls/sensapi/.cvsignore
Normal file
@ -0,0 +1,3 @@
|
||||
Makefile
|
||||
sensapi.dll.dbg.c
|
||||
sensapi.spec.def
|
13
dlls/sensapi/Makefile.in
Normal file
13
dlls/sensapi/Makefile.in
Normal file
@ -0,0 +1,13 @@
|
||||
TOPSRCDIR = @top_srcdir@
|
||||
TOPOBJDIR = ../..
|
||||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
MODULE = sensapi.dll
|
||||
IMPORTS = kernel32
|
||||
|
||||
C_SRCS = \
|
||||
sensapi.c
|
||||
|
||||
@MAKE_DLL_RULES@
|
||||
|
||||
### Dependencies:
|
86
dlls/sensapi/sensapi.c
Normal file
86
dlls/sensapi/sensapi.c
Normal file
@ -0,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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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"
|
||||
|
||||
#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)
|
||||
{
|
||||
FIXME("%p\n", lpdwFlags);
|
||||
return TRUE;
|
||||
}
|
3
dlls/sensapi/sensapi.spec
Normal file
3
dlls/sensapi/sensapi.spec
Normal file
@ -0,0 +1,3 @@
|
||||
@ stdcall IsDestinationReachableA(str ptr)
|
||||
@ stdcall IsDestinationReachableW(wstr ptr)
|
||||
@ stdcall IsNetworkAlive(ptr)
|
@ -200,6 +200,7 @@ WINDOWS_INCLUDES = \
|
||||
schemadef.h \
|
||||
sddl.h \
|
||||
secext.h \
|
||||
sensapi.h \
|
||||
setupapi.h \
|
||||
shellapi.h \
|
||||
shlguid.h \
|
||||
|
43
include/sensapi.h
Normal file
43
include/sensapi.h
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __SENSAPI_H__
|
||||
#define __SENSAPI_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
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__ */
|
Loading…
Reference in New Issue
Block a user