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
24 uuid(d597deed-5b9f-11d1-8dd2-00aa004abd5e)
28 importlib("stdole2.tlb");
30 typedef struct SENS_QOCINFO
36 } SENS_QOCINFO, *LPSENS_QOCINFO;
40 uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e),
41 pointer_default(unique)
43 interface ISensNetwork : IDispatch
45 HRESULT ConnectionMade(
46 [in] BSTR bstrConnection,
48 [in] LPSENS_QOCINFO lpQOCInfo );
49 HRESULT ConnectionMadeNoQOCInfo(
50 [in] BSTR bstrConnection,
52 HRESULT ConnectionLost(
53 [in] BSTR bstrConnection,
55 HRESULT DestinationReachable(
56 [in] BSTR bstrDestination,
57 [in] BSTR bstrConnection,
59 [in] LPSENS_QOCINFO lpQOCInfo );
60 HRESULT DestinationReachableNoQOCInfo(
61 [in] BSTR bstrDestination,
62 [in] BSTR bstrConnection,
68 uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e),
69 pointer_default(unique)
71 interface ISensOnNow : IDispatch
73 HRESULT OnAcPower( void );
74 HRESULT OnBatteryPower(
75 [in] DWORD dwBatteryLifePercent );
77 [in] DWORD dwBatteryLifePercent );
82 uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e),
83 pointer_default(unique)
85 interface ISensLogon : IDispatch
88 [in] BSTR bstrUserName );
90 [in] BSTR bstrUserName );
92 [in] BSTR bstrUserName );
94 [in] BSTR bstrUserName );
95 HRESULT DisplayUnlock(
96 [in] BSTR bstrUserName );
97 HRESULT StartScreenSaver(
98 [in] BSTR bstrUserName );
99 HRESULT StopScreenSaver(
100 [in] BSTR bstrUserName );
105 uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e),
106 pointer_default(unique)
108 interface ISensLogon2 : IDispatch
111 [in] BSTR bstrUserName,
112 [in] DWORD dwSessionId );
114 [in] BSTR bstrUserName,
115 [in] DWORD dwSessionId );
116 HRESULT SessionDisconnect(
117 [in] BSTR bstrUserName,
118 [in] DWORD dwSessionId );
119 HRESULT SessionReconnect(
120 [in] BSTR bstrUserName,
121 [in] DWORD dwSessionId );
123 [in] BSTR bstrUserName,
124 [in] DWORD dwSessionId );
127 } /* library SensEvents */