Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygensensapi.c
Go to the documentation of this file.
00001 /* 00002 * Implementation of System Event Notification Service Library (sensapi.dll) 00003 * 00004 * Copyright 2005 Steven Edwards for CodeWeavers 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 * 00020 * Notes: 00021 * The System Event Notification Service reports the status of network 00022 * connections. For Wine we just report that we are always connected. 00023 */ 00024 00025 #include "config.h" 00026 00027 #include <stdarg.h> 00028 #include <stdio.h> 00029 00030 #define COBJMACROS 00031 00032 #include "windef.h" 00033 #include "winbase.h" 00034 #include "wingdi.h" 00035 #include "winuser.h" 00036 #include "ole2.h" 00037 #include "sensevts.h" 00038 #include "sensapi.h" 00039 00040 #include "uuids.h" 00041 00042 #include "wine/unicode.h" 00043 #include "wine/debug.h" 00044 00045 WINE_DEFAULT_DEBUG_CHANNEL(sensapi); 00046 00047 static HMODULE SENSAPI_hModule; 00048 00049 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 00050 { 00051 TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved); 00052 00053 switch (fdwReason) { 00054 case DLL_PROCESS_ATTACH: 00055 { 00056 DisableThreadLibraryCalls(hinstDLL); 00057 SENSAPI_hModule = hinstDLL; 00058 break; 00059 } 00060 case DLL_PROCESS_DETACH: 00061 { 00062 break; 00063 } 00064 } 00065 00066 return TRUE; 00067 } 00068 00069 BOOL WINAPI IsDestinationReachableA(LPCSTR lpszDestination, LPQOCINFO lpQOCInfo) 00070 { 00071 FIXME("%s,%p\n", lpszDestination, lpQOCInfo); 00072 return TRUE; 00073 } 00074 BOOL WINAPI IsDestinationReachableW(LPCWSTR lpszDestination, LPQOCINFO lpQOCInfo) 00075 { 00076 FIXME("%s,%p\n", debugstr_w(lpszDestination), lpQOCInfo); 00077 return TRUE; 00078 } 00079 00080 BOOL WINAPI IsNetworkAlive(LPDWORD lpdwFlags) 00081 { 00082 TRACE("yes, using LAN type network.\n"); 00083 if (lpdwFlags) 00084 *lpdwFlags = NETWORK_ALIVE_LAN; 00085 return TRUE; 00086 } Generated on Sun May 27 2012 04:26:10 for ReactOS by
1.7.6.1
|