You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.2 KiB
54 lines
2.2 KiB
// dummycom.idl : IDL source for dummycom.dll
|
|
//
|
|
|
|
// This file will be processed by the MIDL tool to
|
|
// produce the type library (dummycom.tlb) and marshalling code.
|
|
|
|
import "oaidl.idl";
|
|
import "ocidl.idl";
|
|
|
|
[
|
|
object,
|
|
uuid(CF913193-33AC-48F0-815D-D8157CA93E7A),
|
|
dual,
|
|
helpstring("ISFUCommon Interface"),
|
|
pointer_default(unique)
|
|
]
|
|
interface ISFUCommon : IDispatch
|
|
{
|
|
[id(1), helpstring("method IsValidMachine")] HRESULT IsValidMachine(BSTR bstrMachine, [out, retval] BOOL *fValid);
|
|
[id(2), helpstring("method IsTrustedDomain")] HRESULT IsTrustedDomain(BSTR bstrDomain, BOOL *fValid);
|
|
[id(3), helpstring("method ConvertUTCtoLocal")] HRESULT ConvertUTCtoLocal(BSTR bUTCYear, BSTR bUTCMonth,BSTR bUTCDayOfWeek, BSTR bUTCDay,BSTR bUTCHour,BSTR bUTCMinute, BSTR bUTCSecond,BSTR *bLocalDate);
|
|
[propget, id(4), helpstring("property mode")] HRESULT mode([out, retval] short *pVal);
|
|
[propput, id(4), helpstring("property mode")] HRESULT mode([in] short newVal);
|
|
[id(5), helpstring("method LoadNTDomainList")] HRESULT LoadNTDomainList();
|
|
[propget, id(6), helpstring("property NTDomain")] HRESULT NTDomain([out, retval] BSTR *pVal);
|
|
[propget, id(7), helpstring("property NTDomainCount")] HRESULT NTDomainCount([out, retval] DWORD *pVal);
|
|
[id(8), helpstring("method moveFirst")] HRESULT moveFirst();
|
|
[id(9), helpstring("method moveNext")] HRESULT moveNext();
|
|
[propget, id(10), helpstring("property machine")] HRESULT machine([out, retval] BSTR *pVal);
|
|
[propput, id(10), helpstring("property machine")] HRESULT machine([in] BSTR newVal);
|
|
// New method added to get the host name of the machine. This is used by the UI.
|
|
[id(11), helpstring("method get_hostName")] HRESULT get_hostName([out, retval] BSTR *pszHostName);
|
|
[id(12), helpstring("method IsServiceInstalled")] HRESULT IsServiceInstalled(BSTR bMachine, BSTR bServiceName,[out, retval] BOOL *fValid);
|
|
|
|
};
|
|
[
|
|
uuid(0C10DF6D-2894-4E9B-9593-27AA6787A80A),
|
|
version(1.0),
|
|
helpstring("dummycom 1.0 Type Library")
|
|
]
|
|
library DUMMYCOMLib
|
|
{
|
|
importlib("stdole32.tlb");
|
|
importlib("stdole2.tlb");
|
|
|
|
[
|
|
uuid(559614EB-7FEA-4912-AA2F-DF201AECACBD),
|
|
helpstring("SFUCommon Class")
|
|
]
|
|
coclass SFUCommon
|
|
{
|
|
[default] interface ISFUCommon;
|
|
};
|
|
};
|