2 * Copyright (C) 2005 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 typedef struct SENS_QOCINFO
27 } SENS_QOCINFO, *LPSENS_QOCINFO;
31 pointer_default(unique)
33 interface ISensNetwork : IDispatch
35 HRESULT ConnectionMade(
36 [in] BSTR bstrConnection,
38 [in] LPSENS_QOCINFO lpQOCInfo );
39 HRESULT ConnectionMadeNoQOCInfo(
40 [in] BSTR bstrConnection,
42 HRESULT ConnectionLost(
43 [in] BSTR bstrConnection,
45 HRESULT DestinationReachable(
46 [in] BSTR bstrDestination,
47 [in] BSTR bstrConnection,
49 [in] LPSENS_QOCINFO lpQOCInfo );
50 HRESULT DestinationReachableNoQOCInfo(
51 [in] BSTR bstrDestination,
52 [in] BSTR bstrConnection,
58 pointer_default(unique)
60 interface ISensOnNow : IDispatch
62 HRESULT OnAcPower( void );
63 HRESULT OnBatteryPower(
64 [in] DWORD dwBatteryLifePercent );
66 [in] DWORD dwBatteryLifePercent );
71 pointer_default(unique)
73 interface ISensLogon : IDispatch
76 [in] BSTR bstrUserName );
78 [in] BSTR bstrUserName );
80 [in] BSTR bstrUserName );
82 [in] BSTR bstrUserName );
83 HRESULT DisplayUnlock(
84 [in] BSTR bstrUserName );
85 HRESULT StartScreenSaver(
86 [in] BSTR bstrUserName );
87 HRESULT StopScreenSaver(
88 [in] BSTR bstrUserName );
93 pointer_default(unique)
95 interface ISensLogon2 : IDispatch
98 [in] BSTR bstrUserName,
99 [in] DWORD dwSessionId );
101 [in] BSTR bstrUserName,
102 [in] DWORD dwSessionId );
103 HRESULT SessionDisconnect(
104 [in] BSTR bstrUserName,
105 [in] DWORD dwSessionId );
106 HRESULT SessionReconnect(
107 [in] BSTR bstrUserName,
108 [in] DWORD dwSessionId );
110 [in] BSTR bstrUserName,
111 [in] DWORD dwSessionId );