Source code of Windows XP (NT5)
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.

137 lines
3.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990 **/
  4. /**********************************************************************/
  5. /*
  6. * History
  7. * chuckc 12/7/90 Created
  8. * chuckc 7/3/91 Code review changes (from 2/28,
  9. * rustanl, chuckc, johnl, jonshu, annmc)
  10. * terryk 9/19/1991 Change USHORT to APIERR
  11. * Change GetInfo to I_GetInfo
  12. * Change WriteInfo to I_WriteInfo
  13. * terryk 10/7/1991 types change for NT
  14. * terryk 10/21/1991 change QueryXXXVer to return
  15. * USHORT2ULONG type
  16. */
  17. #ifndef _LMOWKS_HXX_
  18. #define _LMOWKS_HXX_
  19. #include "lmocomp.hxx"
  20. #include "strlst.hxx"
  21. struct _WKSTA_USER_INFO_1;
  22. typedef struct _WKSTA_USER_INFO_1 WKSTA_USER_INFO_1 ;
  23. /**********************************************************\
  24. NAME: WKSTA_10
  25. WORKBOOK:
  26. SYNOPSIS: workstation level 10
  27. INTERFACE:
  28. WKSTA_10() - constructor
  29. ~WKSTA_10() - destructor
  30. QueryMajorVer() - query major version
  31. QueryMinroVer() - query minor version
  32. QueryLogonUser() - query logon user
  33. QueryWkstaDomain() - Query workstation domain
  34. QueryOtherDomains() - query other domains
  35. GetInfo() - get information
  36. WriteInfo() - write information
  37. PARENT: COMPUTER
  38. HISTORY:
  39. chuckc 12/7/90 Created
  40. chuckc 7/3/91 Code review changes (from 2/28,
  41. rustanl, chuckc, johnl, jonshu, annmc)
  42. terryk 9/19/91 Change to NEW_LM_OBJ
  43. KeithMo 22-Oct-1991 Win32 support.
  44. \**********************************************************/
  45. DLL_CLASS WKSTA_10 : public COMPUTER
  46. {
  47. public:
  48. UINT QueryMajorVer() const ;
  49. UINT QueryMinorVer() const ;
  50. const TCHAR *QueryLogonUser() const ;
  51. const TCHAR *QueryWkstaDomain() const ;
  52. const TCHAR *QueryLogonDomain() const ;
  53. STRLIST * QueryOtherDomains() const ;
  54. virtual APIERR I_GetInfo() ;
  55. WKSTA_10(const TCHAR *pszName = NULL) ;
  56. ~WKSTA_10() ;
  57. protected:
  58. UINT uMinorVer ;
  59. UINT uMajorVer ;
  60. const TCHAR * pszLogonUser ;
  61. const TCHAR * pszWkstaDomain ;
  62. const TCHAR * pszLogonDomain ;
  63. STRLIST *pslOtherDomains ;
  64. #ifdef WIN32
  65. private:
  66. WKSTA_USER_INFO_1 * _pwkui1;
  67. #endif // WIN32
  68. } ;
  69. /**********************************************************\
  70. NAME: WKSTA_1
  71. WORKBOOK:
  72. SYNOPSIS: workstation 1
  73. INTERFACE:
  74. Query_MRoot() - query root
  75. QueryLogonServer() - Query logon server
  76. GetInfo() - get information
  77. WriteInfo() - write information
  78. WKSTA_1() - workstation 1 constructor
  79. ~WKSTA_1() - destructor
  80. PARENT: WKSTA_10
  81. HISTORY:
  82. chuckc 12/7/90 Created
  83. chuckc 7/3/91 Code review changes (from 2/28,
  84. rustanl, chuckc, johnl, jonshu, annmc)
  85. terryk 9/19/91 Change to NEW_LM_OBJ
  86. KeithMo 22-Oct-1991 Win32 support.
  87. \**********************************************************/
  88. DLL_CLASS WKSTA_1 : public WKSTA_10
  89. {
  90. public:
  91. const TCHAR * QueryLMRoot() const ;
  92. const TCHAR * QueryLogonServer() const ;
  93. virtual APIERR I_GetInfo() ;
  94. WKSTA_1(const TCHAR *pszName = NULL) ;
  95. ~WKSTA_1() ;
  96. protected:
  97. const TCHAR * pszLMRoot ;
  98. const TCHAR * pszLogonServer ;
  99. #ifdef WIN32
  100. private:
  101. WKSTA_USER_INFO_1 * _pwkui1;
  102. #endif // WIN32
  103. } ;
  104. #endif // _LMOWKS_HXX_