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

  1. //Copyright (c) Microsoft Corporation. All rights reserved.
  2. // TlntSvr.idl : IDL source for TlntSvr.dll
  3. //
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (TlntSvr.tlb) and marshalling code.
  6. import "oaidl.idl";
  7. import "ocidl.idl";
  8. typedef struct _TELNET_CLIENT_INFO {
  9. WCHAR username[256];
  10. WCHAR domain[256];
  11. WCHAR peerhostname[256];
  12. long uniqueId;
  13. SYSTEMTIME logonTime;
  14. DWORD NoOfPids;
  15. [size_is(NoOfPids)] DWORD *pId;
  16. [size_is(NoOfPids)] WCHAR (*processName)[256];
  17. } TELNET_CLIENT_INFO;
  18. [
  19. object,
  20. uuid(FE9E48A3-A014-11D1-855C-00A0C944138C),
  21. helpstring("IEnumClients Interface"),
  22. pointer_default(unique)
  23. ]
  24. interface IEnumClients : IUnknown
  25. {
  26. [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 );
  27. [helpstring("method Skip")] HRESULT Skip([in] ULONG celt);
  28. [helpstring("method Reset")] HRESULT Reset();
  29. [helpstring("method Clone")] HRESULT Clone([out] IEnumClients** ppenum);
  30. [helpstring("method TerminateSession")] HRESULT TerminateSession([in] DWORD uniqueId);
  31. };
  32. [
  33. object,
  34. uuid(FE9E48A2-A014-11D1-855C-00A0C944138C),
  35. helpstring("IGetEnumClients Interface"),
  36. pointer_default(unique)
  37. ]
  38. interface IGetEnumClients : IUnknown
  39. {
  40. [helpstring("method GetEnumClients")] HRESULT GetEnumClients([out, retval] IEnumClients** ppretval);
  41. };
  42. [
  43. object,
  44. uuid(034634FD-BA3F-11D1-856A-00A0C944138C),
  45. dual,
  46. helpstring("IManageTelnetSessions Interface"),
  47. pointer_default(unique)
  48. ]
  49. interface IManageTelnetSessions : IDispatch
  50. {
  51. [helpstring("method GetTelnetSessions")] HRESULT GetTelnetSessions( [ out, retval ] BSTR *pszSessionData );
  52. [helpstring("method TerminateSession")] HRESULT TerminateSession([in] DWORD dwUniqueId );
  53. [helpstring("method SendMsgToASession")] HRESULT SendMsgToASession([in] DWORD dwUniqueId, [in] BSTR szMsg );
  54. };
  55. [
  56. uuid(FE9E4895-A014-11D1-855C-00A0C944138C),
  57. version(1.0),
  58. helpstring("TlntSvr 1.0 Type Library")
  59. ]
  60. library TLNTSVRLib
  61. {
  62. importlib("stdole32.tlb");
  63. importlib("stdole2.tlb");
  64. [
  65. uuid(FE9E48A4-A014-11D1-855C-00A0C944138C),
  66. helpstring("EnumTelnetClientsSvr Class")
  67. ]
  68. coclass EnumTelnetClientsSvr
  69. {
  70. [default]interface IManageTelnetSessions;
  71. interface IGetEnumClients;
  72. interface IEnumClients;
  73. };
  74. };