qse/ase/com/asecom.idl

319 lines
9.9 KiB
Plaintext
Raw Normal View History

2006-12-09 11:50:08 +00:00
/*
2007-04-21 12:40:44 +00:00
* $Id: asecom.idl,v 1.6 2007-04-21 12:40:44 bacon Exp $
2006-12-09 11:50:08 +00:00
*/
import "oaidl.idl";
import "ocidl.idl";
/* IAwk */
[
object,
uuid(05BC1C9F-7C4E-4F77-B186-2E0FD26C0641),
dual,
helpstring("ASE Awk Interface"),
pointer_default(unique)
]
interface IAwk : IDispatch
{
[id(1), helpstring("method Parse")]
2007-04-15 14:25:35 +00:00
HRESULT Parse([out,retval] VARIANT_BOOL* ret);
2006-12-09 11:50:08 +00:00
[id(2), helpstring("method Run")]
2007-04-21 12:40:44 +00:00
HRESULT Run([in] VARIANT argarray, [out,retval] VARIANT_BOOL* ret);
2006-12-11 14:58:25 +00:00
2007-04-14 15:30:14 +00:00
[id(3), helpstring("method AddFunction")]
2007-04-15 15:26:58 +00:00
HRESULT AddFunction([in] BSTR name, [in] int minArgs, [in] int maxArgs, [out,retval] VARIANT_BOOL* ret);
2007-01-14 15:08:01 +00:00
2007-04-14 15:30:14 +00:00
[id(4), helpstring("method DeleteFunction")]
2007-04-15 14:25:35 +00:00
HRESULT DeleteFunction([in] BSTR name, [out,retval] VARIANT_BOOL* ret);
2007-01-17 14:09:49 +00:00
[propget, id(5), helpstring("property ErrorCode")]
2007-04-14 15:30:14 +00:00
HRESULT ErrorCode([out,retval] int *pVal);
2006-12-11 14:58:25 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(6), helpstring("property ErrorLine")]
2007-04-14 15:30:14 +00:00
HRESULT ErrorLine([out,retval] int *pVal);
2007-01-05 06:29:46 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(7), helpstring("property ErrorMessage")]
2007-04-14 15:30:14 +00:00
HRESULT ErrorMessage([out,retval] BSTR *pVal);
2007-01-05 06:29:46 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(8), helpstring("property ImplicitVariable")]
2007-04-15 14:25:35 +00:00
HRESULT ImplicitVariable([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(8), helpstring("property ImplicitVariable")]
2007-04-15 14:25:35 +00:00
HRESULT ImplicitVariable([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(9), helpstring("property ExplicitVariable")]
2007-04-15 14:25:35 +00:00
HRESULT ExplicitVariable([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(9), helpstring("property ExplicitVariable")]
2007-04-15 14:25:35 +00:00
HRESULT ExplicitVariable([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(10), helpstring("property UniqueFunction")]
2007-04-15 14:25:35 +00:00
HRESULT UniqueFunction([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(10), helpstring("property UniqueFunction")]
2007-04-15 14:25:35 +00:00
HRESULT UniqueFunction([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(11), helpstring("property VariableShading")]
2007-04-15 14:25:35 +00:00
HRESULT VariableShading([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(11), helpstring("property VariableShading")]
2007-04-15 14:25:35 +00:00
HRESULT VariableShading([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(12), helpstring("property ShiftOperators")]
2007-04-15 14:25:35 +00:00
HRESULT ShiftOperators([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(12), helpstring("property ShiftOperators")]
2007-04-15 14:25:35 +00:00
HRESULT ShiftOperators([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(13), helpstring("property IdivOperator")]
2007-04-15 14:25:35 +00:00
HRESULT IdivOperator([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(13), helpstring("property IdivOperator")]
2007-04-15 14:25:35 +00:00
HRESULT IdivOperator([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(14), helpstring("property ConcatString")]
2007-04-15 14:25:35 +00:00
HRESULT ConcatString([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(14), helpstring("property ConcatString")]
2007-04-15 14:25:35 +00:00
HRESULT ConcatString([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(15), helpstring("property SupportExtio")]
2007-04-15 14:25:35 +00:00
HRESULT SupportExtio([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(15), helpstring("property SupportExtio")]
2007-04-15 14:25:35 +00:00
HRESULT SupportExtio([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(16), helpstring("property SupportBlockless")]
2007-04-15 14:25:35 +00:00
HRESULT SupportBlockless([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(16), helpstring("property SupportBlockless")]
2007-04-15 14:25:35 +00:00
HRESULT SupportBlockless([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-25 14:14:56 +00:00
[propget, id(17), helpstring("property StringBaseOne")]
2007-04-15 14:25:35 +00:00
HRESULT StringBaseOne([out,retval] VARIANT_BOOL *pVal);
2007-01-25 14:14:56 +00:00
[propput, id(17), helpstring("property StringBaseOne")]
2007-04-15 14:25:35 +00:00
HRESULT StringBaseOne([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(18), helpstring("property StripSpaces")]
2007-04-15 14:25:35 +00:00
HRESULT StripSpaces([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(18), helpstring("property StripSpaces")]
2007-04-15 14:25:35 +00:00
HRESULT StripSpaces([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(19), helpstring("property Nextofile")]
2007-04-15 14:25:35 +00:00
HRESULT Nextofile([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(19), helpstring("property Nextofile")]
2007-04-15 14:25:35 +00:00
HRESULT Nextofile([in] VARIANT_BOOL newVal);
2007-01-05 13:39:38 +00:00
2007-01-17 14:09:49 +00:00
[propget, id(20), helpstring("property UseCrlf")]
2007-04-15 14:25:35 +00:00
HRESULT UseCrlf([out,retval] VARIANT_BOOL *pVal);
2007-01-17 14:09:49 +00:00
[propput, id(20), helpstring("property UseCrlf")]
2007-04-15 14:25:35 +00:00
HRESULT UseCrlf([in] VARIANT_BOOL newVal);
2007-01-06 15:45:50 +00:00
2007-04-21 12:40:44 +00:00
[propget, id(21), helpstring("property ArgumentsToEntryPoint")]
HRESULT ArgumentsToEntryPoint([out,retval] VARIANT_BOOL *pVal);
[propput, id(21), helpstring("property ArgumentsToEntryPoint")]
HRESULT ArgumentsToEntryPoint([in] VARIANT_BOOL newVal);
2007-04-15 15:26:58 +00:00
[propget, id(22), helpstring("property MaxDepthForBlockParse")]
2007-04-14 15:30:14 +00:00
HRESULT MaxDepthForBlockParse([out,retval] int *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(22), helpstring("property MaxDepthForBlockParse")]
2007-01-06 15:45:50 +00:00
HRESULT MaxDepthForBlockParse([in] int newVal);
2007-04-15 15:26:58 +00:00
[propget, id(23), helpstring("property MaxDepthForBlockRun")]
2007-04-14 15:30:14 +00:00
HRESULT MaxDepthForBlockRun([out,retval] int *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(23), helpstring("property MaxDepthForBlockRun")]
2007-01-06 15:45:50 +00:00
HRESULT MaxDepthForBlockRun([in] int newVal);
2007-04-15 15:26:58 +00:00
[propget, id(24), helpstring("property MaxDepthForExprParse")]
2007-04-14 15:30:14 +00:00
HRESULT MaxDepthForExprParse([out,retval] int *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(24), helpstring("property MaxDepthForExprParse")]
2007-01-10 14:30:44 +00:00
HRESULT MaxDepthForExprParse([in] int newVal);
2007-01-06 15:45:50 +00:00
2007-04-15 15:26:58 +00:00
[propget, id(25), helpstring("property MaxDepthForExprRun")]
2007-04-14 15:30:14 +00:00
HRESULT MaxDepthForExprRun([out,retval] int *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(25), helpstring("property MaxDepthForExprRun")]
2007-01-10 14:30:44 +00:00
HRESULT MaxDepthForExprRun([in] int newVal);
2007-01-06 15:45:50 +00:00
2007-04-15 15:26:58 +00:00
[propget, id(26), helpstring("property MaxDepthForRexBuild")]
2007-04-14 15:30:14 +00:00
HRESULT MaxDepthForRexBuild([out,retval] int *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(26), helpstring("property MaxDepthForRexBuild")]
2007-01-06 15:45:50 +00:00
HRESULT MaxDepthForRexBuild([in] int newVal);
2007-04-15 15:26:58 +00:00
[propget, id(27), helpstring("property MaxDepthForRexMatch")]
2007-04-14 15:30:14 +00:00
HRESULT MaxDepthForRexMatch([out,retval] int *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(27), helpstring("property MaxDepthForRexMatch")]
2007-01-06 15:45:50 +00:00
HRESULT MaxDepthForRexMatch([in] int newVal);
2007-01-10 14:33:51 +00:00
2007-04-15 15:26:58 +00:00
[propget, id(28), helpstring("property EntryPoint")]
2007-04-14 15:30:14 +00:00
HRESULT EntryPoint([out,retval] BSTR *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(28), helpstring("property EntryPoint")]
2007-01-10 14:33:51 +00:00
HRESULT EntryPoint([in] BSTR newVal);
2007-01-11 03:56:02 +00:00
2007-04-15 15:26:58 +00:00
[propget, id(29), helpstring("property Debug")]
2007-04-15 14:25:35 +00:00
HRESULT Debug([out,retval] VARIANT_BOOL *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(29), helpstring("property Debug")]
2007-04-15 14:25:35 +00:00
HRESULT Debug([in] VARIANT_BOOL newVal);
2007-01-16 06:09:07 +00:00
2007-04-15 15:26:58 +00:00
[propget, id(30), helpstring("property UseLongLong")]
2007-04-15 14:25:35 +00:00
HRESULT UseLongLong([out,retval] VARIANT_BOOL *pVal);
2007-04-15 15:26:58 +00:00
[propput, id(30), helpstring("property UseLongLong")]
2007-04-15 14:25:35 +00:00
HRESULT UseLongLong([in] VARIANT_BOOL newVal);
2006-12-09 11:50:08 +00:00
};
/* ASELib */
[
uuid(F9C69806-16A1-4162-998A-876B33C470BF),
version(1.0),
helpstring("ASE 1.0 Type Library")
]
library ASELib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
2007-04-14 15:30:14 +00:00
[helpstring("Awk source mode")]
typedef [v1_enum] enum AwkSourceMode
{
AWK_SOURCE_READ = 0,
AWK_SOURCE_WRITE = 1
} AwkSourceMode;
[helpstring("AwkExtio type")]
2006-12-11 14:58:25 +00:00
typedef [v1_enum] enum AwkExtioType
{
AWK_EXTIO_PIPE = 0,
AWK_EXTIO_COPROC = 1,
AWK_EXTIO_FILE = 2,
AWK_EXTIO_CONSOLE = 3
} AwkExtioType;
[helpstring("AwkExtio mode")]
typedef [v1_enum] enum AwkExtioMode
{
AWK_EXTIO_PIPE_READ = 0,
AWK_EXTIO_PIPE_WRITE = 1,
AWK_EXTIO_COPROC_READ = 0,
AWK_EXTIO_COPROC_WRITE = 1,
AWK_EXTIO_COPROC_RDWR = 2,
AWK_EXTIO_FILE_READ = 0,
AWK_EXTIO_FILE_WRITE = 1,
AWK_EXTIO_FILE_APPEND = 2,
AWK_EXTIO_CONSOLE_READ = 0,
AWK_EXTIO_CONSOLE_WRITE = 1
} AwkExtioMode;
2006-12-09 11:50:08 +00:00
/* IBuffer */
[
object,
uuid(AD5EA986-37E9-410E-A78E-21799104293A),
dual,
helpstring("IBuffer Interface"),
pointer_default(unique)
]
interface IBuffer : IDispatch
{
[propget, id(1), helpstring("property Value")]
2007-04-14 15:30:14 +00:00
HRESULT Value([out,retval] BSTR *pVal);
2006-12-09 11:50:08 +00:00
[propput, id(1), helpstring("property Value")]
HRESULT Value([in] BSTR newVal);
};
2006-12-09 17:36:27 +00:00
/* IAwkExtio */
[
object,
uuid(BE0B91FF-9944-4DFC-A55B-1FE14E24AFEE),
dual,
helpstring("IAwkExtio Interface"),
pointer_default(unique)
]
interface IAwkExtio : IDispatch
{
[propget, id(1), helpstring("property Name")]
2007-04-14 15:30:14 +00:00
HRESULT Name([out,retval] BSTR *pVal);
2006-12-09 17:36:27 +00:00
[propget, id(2), helpstring("property Type")]
2007-04-15 13:15:35 +00:00
HRESULT Type([out,retval] AwkExtioType *pVal);
2006-12-09 17:36:27 +00:00
[propget, id(3), helpstring("property Mode")]
2007-04-15 13:15:35 +00:00
HRESULT Mode([out,retval] AwkExtioMode *pVal);
2006-12-11 14:58:25 +00:00
[propget, id(4), helpstring("property Handle")]
2007-04-14 15:30:14 +00:00
HRESULT Handle([out,retval] VARIANT *pVal);
2006-12-11 14:58:25 +00:00
[propput, id(4), helpstring("property Handle")]
HRESULT Handle([in] VARIANT newVal);
2006-12-09 17:36:27 +00:00
};
2006-12-09 11:50:08 +00:00
/* IAwkEvents */
[
uuid(1351DC8F-10AD-4C40-A2FA-9A2E89C27AC8),
helpstring("ASE Awk Events Interface")
]
dispinterface IAwkEvents
{
properties:
methods:
2006-12-09 17:36:27 +00:00
[id(1), helpstring("open the source code")]
2007-04-14 15:30:14 +00:00
HRESULT OpenSource([in] AwkSourceMode mode, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(2), helpstring("close the source code")]
2007-04-14 15:30:14 +00:00
HRESULT CloseSource([in] AwkSourceMode mode, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(3), helpstring("read the source code")]
2007-04-14 15:30:14 +00:00
HRESULT ReadSource([in] IBuffer* buf, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(4), helpstring("write the source code")]
2007-04-14 15:30:14 +00:00
HRESULT WriteSource([in] IBuffer* buf, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(5), helpstring("method OpenExtio")]
2007-04-14 15:30:14 +00:00
HRESULT OpenExtio([in] IAwkExtio* extio, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(6), helpstring("method CloseExtio")]
2007-04-14 15:30:14 +00:00
HRESULT CloseExtio([in] IAwkExtio* extio, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(7), helpstring("method ReadExtio")]
2007-04-14 15:30:14 +00:00
HRESULT ReadExtio([in] IAwkExtio* extio, [in] IBuffer* buf, [out,retval] int* ret);
2006-12-09 11:50:08 +00:00
2006-12-09 17:36:27 +00:00
[id(8), helpstring("method WriteExtio")]
2007-04-14 15:30:14 +00:00
HRESULT WriteExtio([in] IAwkExtio* extio, [in] IBuffer* buf, [out,retval] int* ret);
2006-12-11 14:58:25 +00:00
[id(9), helpstring("method FlushExtio")]
2007-04-14 15:30:14 +00:00
HRESULT FlushExtio([in] IAwkExtio* extio, [out,retval] int* ret);
2006-12-11 14:58:25 +00:00
[id(10), helpstring("method NextExtio")]
2007-04-14 15:30:14 +00:00
HRESULT NextExtio([in] IAwkExtio* extio, [out,retval] int* ret);
2007-01-14 15:08:01 +00:00
2007-04-14 15:30:14 +00:00
[id(11), helpstring("method HandleFunction")]
HRESULT HandleFunction([in] BSTR name, [in] VARIANT argarray, [out,retval] VARIANT* ret);
2007-04-15 13:15:35 +00:00
/*[id(12), helpstring("method OnClose")]
HRESULT OnClose([out,retval] int* ret);*/
2006-12-09 11:50:08 +00:00
};
/* Awk */
[
uuid(AD863B53-F5EC-45C3-8B1C-6AC678227DC8),
helpstring("ASE Awk Class")
]
coclass Awk
{
[default] interface IAwk;
[default,source] dispinterface IAwkEvents;
};
/* AwkExtio */
[
uuid(F52F065A-5FD4-4F4D-AFEA-F5E446B16383),
helpstring("ASE AwkExtio Class")
]
coclass AwkExtio
{
[default] interface IAwkExtio;
};
/* Buffer */
[
uuid(866B79A7-7628-4808-8AE7-784BE2491C80),
helpstring("ASE Buffer Class")
]
coclass Buffer
{
[default] interface IBuffer;
};
};