-
Notifications
You must be signed in to change notification settings - Fork 5
/
Snapsie.idl
76 lines (70 loc) · 1.86 KB
/
Snapsie.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Snapsie.idl : IDL source for Snapsie
//
// This file will be processed by the MIDL tool to
// produce the type library (Snapsie.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(a817e7a2-43fa-11d0-9e44-00aa00b6770a),
dual,
helpstring("IComponentRegistrar Interface"),
pointer_default(unique)
]
interface IComponentRegistrar : IDispatch
{
[id(1)] HRESULT Attach([in] BSTR bstrPath);
[id(2)] HRESULT RegisterAll();
[id(3)] HRESULT UnregisterAll();
[id(4)] HRESULT GetComponents([out] SAFEARRAY(BSTR)* pbstrCLSIDs, [out] SAFEARRAY(BSTR)* pbstrDescriptions);
[id(5)] HRESULT RegisterComponent([in] BSTR bstrCLSID);
[id(6)] HRESULT UnregisterComponent([in] BSTR bstrCLSID);
};
[
object,
uuid(62338A0D-92DD-473D-818E-36118EF78E9D),
dual,
nonextensible,
helpstring("ISnapsie Interface"),
pointer_default(unique)
]
interface ISnapsie : IDispatch
{
HRESULT saveSnapshot(
[in] BSTR outputFile,
[in] BSTR frameId,
[in] LONG drawableScrollWidth,
[in] LONG drawableScrollHeight,
[in] LONG drawableClientWidth,
[in] LONG drawableClientHeight,
[in] LONG drawableClientLeft,
[in] LONG drawableClientTop,
[in] LONG frameBCRLeft,
[in] LONG frameBCRTop);
};
[
uuid(E2A04E04-DCA7-48CF-A9B0-643CB8152E59),
version(1.0),
helpstring("Snapsie 1.0 Type Library"),
custom(a817e7a1-43fa-11d0-9e44-00aa00b6770a,"{68EFB69B-B8B2-486D-97C0-B00BA2F231E0}")
]
library SnapsieLib
{
importlib("stdole2.tlb");
[
uuid(68EFB69B-B8B2-486D-97C0-B00BA2F231E0),
helpstring("ComponentRegistrar Class")
]
coclass CompReg
{
[default] interface IComponentRegistrar;
};
[
uuid(83D4FFBF-83C7-48FF-8342-123CC6BDC851),
helpstring("CoSnapsie Class")
]
coclass CoSnapsie
{
[default] interface ISnapsie;
};
};