Leaked source code of windows server 2003
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.
 
 
 
 
 
 

85 lines
2.4 KiB

//Copyright (c) Microsoft Corporation. All rights reserved.
// TlntSvr.idl : IDL source for TlntSvr.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (TlntSvr.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
typedef struct _TELNET_CLIENT_INFO {
WCHAR username[256];
WCHAR domain[256];
WCHAR peerhostname[256];
long uniqueId;
SYSTEMTIME logonTime;
DWORD NoOfPids;
[size_is(NoOfPids)] DWORD *pId;
[size_is(NoOfPids)] WCHAR (*processName)[256];
} TELNET_CLIENT_INFO;
[
object,
uuid(FE9E48A3-A014-11D1-855C-00A0C944138C),
helpstring("IEnumClients Interface"),
pointer_default(unique)
]
interface IEnumClients : IUnknown
{
[helpstring("method Next")] HRESULT Next([in,range(0,500)] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] TELNET_CLIENT_INFO** rgelt, [out] ULONG* pceltFetched );
[helpstring("method Skip")] HRESULT Skip([in] ULONG celt);
[helpstring("method Reset")] HRESULT Reset();
[helpstring("method Clone")] HRESULT Clone([out] IEnumClients** ppenum);
[helpstring("method TerminateSession")] HRESULT TerminateSession([in] DWORD uniqueId);
};
[
object,
uuid(FE9E48A2-A014-11D1-855C-00A0C944138C),
helpstring("IGetEnumClients Interface"),
pointer_default(unique)
]
interface IGetEnumClients : IUnknown
{
[helpstring("method GetEnumClients")] HRESULT GetEnumClients([out, retval] IEnumClients** ppretval);
};
[
object,
uuid(034634FD-BA3F-11D1-856A-00A0C944138C),
dual,
helpstring("IManageTelnetSessions Interface"),
pointer_default(unique)
]
interface IManageTelnetSessions : IDispatch
{
[helpstring("method GetTelnetSessions")] HRESULT GetTelnetSessions( [ out, retval ] BSTR *pszSessionData );
[helpstring("method TerminateSession")] HRESULT TerminateSession([in] DWORD dwUniqueId );
[helpstring("method SendMsgToASession")] HRESULT SendMsgToASession([in] DWORD dwUniqueId, [in] BSTR szMsg );
};
[
uuid(FE9E4895-A014-11D1-855C-00A0C944138C),
version(1.0),
helpstring("TlntSvr 1.0 Type Library")
]
library TLNTSVRLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(FE9E48A4-A014-11D1-855C-00A0C944138C),
helpstring("EnumTelnetClientsSvr Class")
]
coclass EnumTelnetClientsSvr
{
[default]interface IManageTelnetSessions;
interface IGetEnumClients;
interface IEnumClients;
};
};