From 862377f123f4821aa3e3ac62065a3d7131cfc8d4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 28 Dec 2011 10:44:33 +0100 Subject: [PATCH] sensapi: Define the SensEvents library in sensevts.idl. Also import wtypes.idl. --- include/sensevts.idl | 191 +++++++++++++++++++++++-------------------- 1 file changed, 101 insertions(+), 90 deletions(-) diff --git a/include/sensevts.idl b/include/sensevts.idl index 1ecb9f77f7..70a469a2a1 100644 --- a/include/sensevts.idl +++ b/include/sensevts.idl @@ -16,101 +16,112 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +import "wtypes.idl"; import "oaidl.idl"; -typedef struct SENS_QOCINFO -{ - DWORD dwSize; - DWORD dwFlags; - DWORD dwOutSpeed; - DWORD dwInSpeed; -} SENS_QOCINFO, *LPSENS_QOCINFO; - [ - object, - uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e), - pointer_default(unique) + version(2.0), + uuid(d597deed-5b9f-11d1-8dd2-00aa004abd5e) ] -interface ISensNetwork : IDispatch +library SensEvents { - HRESULT ConnectionMade( - [in] BSTR bstrConnection, - [in] ULONG ulType, - [in] LPSENS_QOCINFO lpQOCInfo ); - HRESULT ConnectionMadeNoQOCInfo( - [in] BSTR bstrConnection, - [in] ULONG ulType ); - HRESULT ConnectionLost( - [in] BSTR bstrConnection, - [in] ULONG ulType ); - HRESULT DestinationReachable( - [in] BSTR bstrDestination, - [in] BSTR bstrConnection, - [in] ULONG ulType, - [in] LPSENS_QOCINFO lpQOCInfo ); - HRESULT DestinationReachableNoQOCInfo( - [in] BSTR bstrDestination, - [in] BSTR bstrConnection, - [in] ULONG ulType ); -} + importlib("stdole2.tlb"); -[ - object, - uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e), - pointer_default(unique) -] -interface ISensOnNow : IDispatch -{ - HRESULT OnAcPower( void ); - HRESULT OnBatteryPower( - [in] DWORD dwBatteryLifePercent ); - HRESULT BatteryLow( - [in] DWORD dwBatteryLifePercent ); -} + typedef struct SENS_QOCINFO + { + DWORD dwSize; + DWORD dwFlags; + DWORD dwOutSpeed; + DWORD dwInSpeed; + } SENS_QOCINFO, *LPSENS_QOCINFO; -[ - object, - uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e), - pointer_default(unique) -] -interface ISensLogon : IDispatch -{ - HRESULT Logon( - [in] BSTR bstrUserName ); - HRESULT Logoff( - [in] BSTR bstrUserName ); - HRESULT StartShell( - [in] BSTR bstrUserName ); - HRESULT DisplayLock( - [in] BSTR bstrUserName ); - HRESULT DisplayUnlock( - [in] BSTR bstrUserName ); - HRESULT StartScreenSaver( - [in] BSTR bstrUserName ); - HRESULT StopScreenSaver( - [in] BSTR bstrUserName ); -} + [ + object, + uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e), + pointer_default(unique) + ] + interface ISensNetwork : IDispatch + { + HRESULT ConnectionMade( + [in] BSTR bstrConnection, + [in] ULONG ulType, + [in] LPSENS_QOCINFO lpQOCInfo ); + HRESULT ConnectionMadeNoQOCInfo( + [in] BSTR bstrConnection, + [in] ULONG ulType ); + HRESULT ConnectionLost( + [in] BSTR bstrConnection, + [in] ULONG ulType ); + HRESULT DestinationReachable( + [in] BSTR bstrDestination, + [in] BSTR bstrConnection, + [in] ULONG ulType, + [in] LPSENS_QOCINFO lpQOCInfo ); + HRESULT DestinationReachableNoQOCInfo( + [in] BSTR bstrDestination, + [in] BSTR bstrConnection, + [in] ULONG ulType ); + } -[ - object, - uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e), - pointer_default(unique) -] -interface ISensLogon2 : IDispatch -{ - HRESULT Logon( - [in] BSTR bstrUserName, - [in] DWORD dwSessionId ); - HRESULT Logoff( - [in] BSTR bstrUserName, - [in] DWORD dwSessionId ); - HRESULT SessionDisconnect( - [in] BSTR bstrUserName, - [in] DWORD dwSessionId ); - HRESULT SessionReconnect( - [in] BSTR bstrUserName, - [in] DWORD dwSessionId ); - HRESULT PostShell( - [in] BSTR bstrUserName, - [in] DWORD dwSessionId ); -} + [ + object, + uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e), + pointer_default(unique) + ] + interface ISensOnNow : IDispatch + { + HRESULT OnAcPower( void ); + HRESULT OnBatteryPower( + [in] DWORD dwBatteryLifePercent ); + HRESULT BatteryLow( + [in] DWORD dwBatteryLifePercent ); + } + + [ + object, + uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e), + pointer_default(unique) + ] + interface ISensLogon : IDispatch + { + HRESULT Logon( + [in] BSTR bstrUserName ); + HRESULT Logoff( + [in] BSTR bstrUserName ); + HRESULT StartShell( + [in] BSTR bstrUserName ); + HRESULT DisplayLock( + [in] BSTR bstrUserName ); + HRESULT DisplayUnlock( + [in] BSTR bstrUserName ); + HRESULT StartScreenSaver( + [in] BSTR bstrUserName ); + HRESULT StopScreenSaver( + [in] BSTR bstrUserName ); + } + + [ + object, + uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e), + pointer_default(unique) + ] + interface ISensLogon2 : IDispatch + { + HRESULT Logon( + [in] BSTR bstrUserName, + [in] DWORD dwSessionId ); + HRESULT Logoff( + [in] BSTR bstrUserName, + [in] DWORD dwSessionId ); + HRESULT SessionDisconnect( + [in] BSTR bstrUserName, + [in] DWORD dwSessionId ); + HRESULT SessionReconnect( + [in] BSTR bstrUserName, + [in] DWORD dwSessionId ); + HRESULT PostShell( + [in] BSTR bstrUserName, + [in] DWORD dwSessionId ); + } + +} /* library SensEvents */ -- 2.32.0.93.g670b81a890