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 uuid(d597bab1
-5b9f
-11d1
-8dd2
-00aa004abd5e
),
32 pointer_default(unique)
34 interface ISensNetwork
: IDispatch
36 HRESULT ConnectionMade
(
37 [in] BSTR bstrConnection
,
39 [in] LPSENS_QOCINFO lpQOCInfo
);
40 HRESULT ConnectionMadeNoQOCInfo
(
41 [in] BSTR bstrConnection
,
43 HRESULT ConnectionLost
(
44 [in] BSTR bstrConnection
,
46 HRESULT DestinationReachable
(
47 [in] BSTR bstrDestination
,
48 [in] BSTR bstrConnection
,
50 [in] LPSENS_QOCINFO lpQOCInfo
);
51 HRESULT DestinationReachableNoQOCInfo
(
52 [in] BSTR bstrDestination
,
53 [in] BSTR bstrConnection
,
59 uuid(d597bab2
-5b9f
-11d1
-8dd2
-00aa004abd5e
),
60 pointer_default(unique)
62 interface ISensOnNow
: IDispatch
64 HRESULT OnAcPower
( void );
65 HRESULT OnBatteryPower
(
66 [in] DWORD dwBatteryLifePercent
);
68 [in] DWORD dwBatteryLifePercent
);
73 uuid(d597bab3
-5b9f
-11d1
-8dd2
-00aa004abd5e
),
74 pointer_default(unique)
76 interface ISensLogon
: IDispatch
79 [in] BSTR bstrUserName
);
81 [in] BSTR bstrUserName
);
83 [in] BSTR bstrUserName
);
85 [in] BSTR bstrUserName
);
86 HRESULT DisplayUnlock
(
87 [in] BSTR bstrUserName
);
88 HRESULT StartScreenSaver
(
89 [in] BSTR bstrUserName
);
90 HRESULT StopScreenSaver
(
91 [in] BSTR bstrUserName
);
96 uuid(d597bab4
-5b9f
-11d1
-8dd2
-00aa004abd5e
),
97 pointer_default(unique)
99 interface ISensLogon2
: IDispatch
102 [in] BSTR bstrUserName
,
103 [in] DWORD dwSessionId
);
105 [in] BSTR bstrUserName
,
106 [in] DWORD dwSessionId
);
107 HRESULT SessionDisconnect
(
108 [in] BSTR bstrUserName
,
109 [in] DWORD dwSessionId
);
110 HRESULT SessionReconnect
(
111 [in] BSTR bstrUserName
,
112 [in] DWORD dwSessionId
);
114 [in] BSTR bstrUserName
,
115 [in] DWORD dwSessionId
);