123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- /*++
- Copyright (c) Microsoft Corporation. All rights reserved.
- Module Name:
- sensevts.idl
- Abstract:
- This file contains the ISensEvents interface which should be implemented
- by any Subscriber that subscribes to SENS events.
- Author:
- Gopal Parupudi <GopalP>
- [Notes:]
- optional-notes
- Revision History:
- GopalP 11/12/1997 Start.
- --*/
- import "wtypes.idl";
- //
- // SENS Events Type library
- //
- [
- uuid(d597deed-5b9f-11d1-8dd2-00aa004abd5e),
- version(2.0),
- helpstring("SENS Events Type Library")
- ]
- library SensEvents
- {
- importlib("stdole2.tlb");
- typedef [uuid(d597fad1-5b9f-11d1-8dd2-00aa004abd5e)] struct SENS_QOCINFO
- {
- DWORD dwSize;
- DWORD dwFlags;
- DWORD dwOutSpeed;
- DWORD dwInSpeed;
- } SENS_QOCINFO;
- typedef SENS_QOCINFO *LPSENS_QOCINFO;
- //
- // Interface ISensNetwork
- //
- [
- object,
- uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e),
- version(1.0),
- helpstring("SENS Network Events"),
- dual,
- ]
- interface ISensNetwork : IDispatch
- {
- [id(0x00000001)]
- HRESULT
- ConnectionMade(
- [in] BSTR bstrConnection,
- [in] ULONG ulType,
- [in] LPSENS_QOCINFO lpQOCInfo
- );
- [id(0x00000002)]
- HRESULT
- ConnectionMadeNoQOCInfo(
- [in] BSTR bstrConnection,
- [in] ULONG ulType
- );
- [id(0x00000003)]
- HRESULT
- ConnectionLost(
- [in] BSTR bstrConnection,
- [in] ULONG ulType
- );
- [id(0x00000004)]
- HRESULT
- DestinationReachable(
- [in] BSTR bstrDestination,
- [in] BSTR bstrConnection,
- [in] ULONG ulType,
- [in] LPSENS_QOCINFO lpQOCInfo
- );
- [id(0x00000005)]
- HRESULT
- DestinationReachableNoQOCInfo(
- [in] BSTR bstrDestination,
- [in] BSTR bstrConnection,
- [in] ULONG ulType
- );
- };
- //
- // Interface ISensOnNow
- //
- [
- object,
- uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e),
- version(1.0),
- helpstring("SENS OnNow Events"),
- dual
- ]
- interface ISensOnNow : IDispatch
- {
- [id(0x00000001)]
- HRESULT
- OnACPower(
- void
- );
- [id(0x00000002)]
- HRESULT
- OnBatteryPower(
- [in] DWORD dwBatteryLifePercent
- );
- [id(0x00000003)]
- HRESULT
- BatteryLow(
- [in] DWORD dwBatteryLifePercent
- );
- };
- //
- // Interface ISensLogon
- //
- [
- object,
- uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e),
- version(1.0),
- helpstring("SENS WinLogon Events"),
- dual
- ]
- interface ISensLogon : IDispatch
- {
- [id(0x00000001)]
- HRESULT
- Logon(
- [in] BSTR bstrUserName
- );
- [id(0x00000002)]
- HRESULT
- Logoff(
- [in] BSTR bstrUserName
- );
- [id(0x00000003)]
- HRESULT
- StartShell(
- [in] BSTR bstrUserName
- );
- [id(0x00000004)]
- HRESULT
- DisplayLock(
- [in] BSTR bstrUserName
- );
- [id(0x00000005)]
- HRESULT
- DisplayUnlock(
- [in] BSTR bstrUserName
- );
- [id(0x00000006)]
- HRESULT
- StartScreenSaver(
- [in] BSTR bstrUserName
- );
- [id(0x00000007)]
- HRESULT
- StopScreenSaver(
- [in] BSTR bstrUserName
- );
- };
- //
- // Interface ISensLogon2
- //
- [
- object,
- uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e),
- version(1.0),
- helpstring("SENS WinLogon2 Events"),
- dual
- ]
- interface ISensLogon2 : IDispatch
- {
- [id(0x00000001)]
- HRESULT
- Logon(
- [in] BSTR bstrUserName,
- [in] DWORD dwSessionId
- );
- [id(0x00000002)]
- HRESULT
- Logoff(
- [in] BSTR bstrUserName,
- [in] DWORD dwSessionId
- );
- [id(0x00000003)]
- HRESULT
- SessionDisconnect(
- [in] BSTR bstrUserName,
- [in] DWORD dwSessionId
- );
- [id(0x00000004)]
- HRESULT
- SessionReconnect(
- [in] BSTR bstrUserName,
- [in] DWORD dwSessionId
- );
- [id(0x00000005)]
- HRESULT
- PostShell(
- [in] BSTR bstrUserName,
- [in] DWORD dwSessionId
- );
- };
- //
- // CoClass SENS
- //
- [
- uuid(d597cafe-5b9f-11d1-8dd2-00aa004abd5e),
- helpstring("System Event Notification Service (SENS)")
- ]
- coclass SENS
- {
- [default, source] interface ISensNetwork;
- [source] interface ISensOnNow;
- [source] interface ISensLogon;
- [source] interface ISensLogon2;
- };
- };
|