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.

106 lines
2.6 KiB

  1. //---------------------------------------------------------
  2. // Copyright (c) 1999-2000 Microsoft Corporation
  3. //
  4. // telnet.h
  5. //
  6. // vikram K.R.C. ([email protected])
  7. //
  8. // The header file for the telnet command line admin tool.
  9. // (May-2000)
  10. //---------------------------------------------------------
  11. #ifndef _TNADMIN_FUNCTIONS_HEADER_
  12. #define _TNADMIN_FUNCTIONS_HEADER_
  13. #include <wbemidl.h>
  14. #include <stdio.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define _p_CTRLAKEYMAP_ 3
  19. #define _p_TIMEOUTACTIVE_ 4
  20. #define _p_MAXCONN_ 5
  21. #define _p_PORT_ 6
  22. #define _p_MAXFAIL_ 7
  23. #define _p_KILLALL_ 8
  24. #define _p_MODE_ 9
  25. #define _p_AUDITLOCATION_ 10
  26. #define _p_SEC_ 11
  27. #define _p_DOM_ 12
  28. #define _p_AUDIT_ 13
  29. #define _p_TIMEOUT_ 14
  30. #define _p_FNAME_ 15
  31. #define _p_FSIZE_ 16
  32. //registry notification property
  33. #define _p_DEFAULTS_ 17
  34. #define _p_INSTALLPATH_ 18
  35. //#define _p_STATE_ 4
  36. //#define _p_SESSID_ 17
  37. //secvalues
  38. #define NTLM_BIT 0
  39. #define PASSWD_BIT 1
  40. #define ADMIN_BIT 0
  41. #define USER_BIT 1
  42. #define FAIL_BIT 2
  43. //functions.
  44. //telnet specific functions
  45. //initializes
  46. int Initialize(void);
  47. //deal with the options
  48. //deals with config options in entirety.
  49. HRESULT DoTnadmin(void);
  50. HRESULT GetCorrectVariant(int nProperty,int nWhichone, VARIANT* pvar);
  51. //prints the present settings.
  52. HRESULT PrintSettings(void);
  53. //functions to deal with sessions.
  54. //get handle to the interface.
  55. HRESULT SesidInit(void);
  56. //get all the sessions.
  57. HRESULT ListUsers(void);
  58. //if a session id is given check if it is present.
  59. int CheckSessionID(void);
  60. //to show session(s)
  61. HRESULT ShowSession(void);
  62. //to message session(s)
  63. HRESULT MessageSession();
  64. //to kill session(s)
  65. HRESULT TerminateSession(void);
  66. //to free the allocated memory
  67. void Quit(void);
  68. HRESULT ConvertUTCtoLocal(WCHAR* bUTCYear, WCHAR* bUTCMonth, WCHAR* bUTCDayOfWeek, WCHAR* bUTCDay, WCHAR* bUTCHour, WCHAR* bUTCMinute, WCHAR* bUTCSecond, BSTR * bLocalDate);
  69. // This function IsMaxConnChangeAllowed() is no longer used. So commenting out now
  70. // BOOL IsMaxConnChangeAllowed();
  71. HRESULT IsWhistlerTheOS(BOOL *fWhistler);
  72. BOOL IsSFUInstalled();
  73. //WCHAR* setDefaultDomainToLocaldomain();
  74. BOOL setDefaultDomainToLocaldomain(WCHAR wzDomain[]);
  75. void formatShowSessionsDisplay();
  76. BOOL IsServerClass();
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif