1 | /*
|
---|
2 | * Copyright 2006 Matthew Kehrer
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "oaidl.idl";
|
---|
29 | import "ocidl.idl";
|
---|
30 |
|
---|
31 | cpp_quote("EXTERN_C const GUID NAMEDTIMER_DRAW;")
|
---|
32 |
|
---|
33 | [
|
---|
34 | object,
|
---|
35 | uuid(3050F361-98B5-11CF-BB82-00AA00BDCE0B),
|
---|
36 | pointer_default(unique)
|
---|
37 | ]
|
---|
38 | interface ITimerSink : IUnknown
|
---|
39 | {
|
---|
40 | HRESULT OnTimer([in] VARIANT vtimeAdvise);
|
---|
41 | }
|
---|
42 |
|
---|
43 |
|
---|
44 | [
|
---|
45 | object,
|
---|
46 | uuid(3050F360-98B5-11CF-BB82-00AA00BDCE0B),
|
---|
47 | pointer_default(unique)
|
---|
48 | ]
|
---|
49 | interface ITimer : IUnknown
|
---|
50 | {
|
---|
51 | HRESULT Advise([in] VARIANT vtimeMin,
|
---|
52 | [in] VARIANT vtimeMax,
|
---|
53 | [in] VARIANT vtimeInterval,
|
---|
54 | [in] DWORD dwFlags,
|
---|
55 | [in] ITimerSink *pTimerSink,
|
---|
56 | [out] DWORD *pdwCookie);
|
---|
57 |
|
---|
58 | HRESULT Unadvise([in] DWORD dwCookie);
|
---|
59 |
|
---|
60 | HRESULT Freeze([in] BOOL fFreeze);
|
---|
61 |
|
---|
62 | HRESULT GetTime([out] VARIANT *pvtime);
|
---|
63 | }
|
---|
64 |
|
---|
65 |
|
---|
66 | [
|
---|
67 | object,
|
---|
68 | uuid(3050F35F-98B5-11CF-BB82-00AA00BDCE0B),
|
---|
69 | pointer_default(unique)
|
---|
70 | ]
|
---|
71 | interface ITimerService : IUnknown
|
---|
72 | {
|
---|
73 | HRESULT CreateTimer([in] ITimer *pReferenceTimer,
|
---|
74 | [out] ITimer **ppNewTimer);
|
---|
75 |
|
---|
76 | HRESULT GetNamedTimer([in] REFGUID rguidName,
|
---|
77 | [out] ITimer **ppTimer);
|
---|
78 |
|
---|
79 | HRESULT SetNamedTimerReference([in] REFGUID rguidName,
|
---|
80 | [in] ITimer *pReferenceTimer);
|
---|
81 | }
|
---|
82 |
|
---|
83 | cpp_quote("#define SID_STimerService IID_ITimerService")
|
---|