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.

159 lines
2.5 KiB

  1. /******************************************************************
  2. Session.h--
  3. // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  4. *******************************************************************/
  5. #ifndef _SESSION_H_
  6. #define _SESSION_H_
  7. #ifdef NTONLY
  8. #include <lm.h>
  9. #endif
  10. #if 0
  11. #ifdef WIN9XONLY
  12. #include "Connshare.h"
  13. #endif
  14. #endif // #if 0
  15. class CSession : public Provider
  16. {
  17. private:
  18. #ifdef NTONLY
  19. HRESULT EnumNTSessionInfo (
  20. LPWSTR lpComputerName,
  21. LPWSTR lpUserName,
  22. short a_Level,
  23. MethodContext *pMethodContext,
  24. DWORD dwPropertiesReq
  25. );
  26. HRESULT FindAndSetNTSession (
  27. LPCWSTR t_ComputerName,
  28. LPWSTR t_UserName,
  29. short t_Level,
  30. DWORD dwPropertiesReq,
  31. CInstance *pInstance,
  32. DWORD eOperation
  33. );
  34. HRESULT OptimizeNTQuery (
  35. CHStringArray& a_ComputerValues,
  36. CHStringArray& a_UserValues,
  37. short a_Level,
  38. MethodContext *pMethodContext,
  39. DWORD dwPropertiesReq
  40. );
  41. void GetNTLevelInfo (
  42. DWORD dwPropertiesReq,
  43. short *a_Level
  44. );
  45. #endif
  46. #if 0
  47. #ifdef WIN9XONLY
  48. HRESULT Enum9XSessionInfo (
  49. short a_Level,
  50. MethodContext *pMethodContext,
  51. DWORD dwPropertiesReq
  52. );
  53. HRESULT FindAndSet9XSession (
  54. CHString &t_ComputerName,
  55. CHString &_UserName,
  56. short t_Level,
  57. DWORD dwPropertiesReq,
  58. CInstance *pInstance,
  59. DWORD eOperation
  60. );
  61. HRESULT Optimize9XQuery (
  62. CHStringArray &a_ComputerValues,
  63. CHStringArray &a_UserValues,
  64. short a_Level,
  65. MethodContext *pMethodContext,
  66. DWORD dwPropertiesReq
  67. );
  68. void Get9XLevelInfo (
  69. DWORD dwPropertiesReq,
  70. short *a_Level
  71. );
  72. #endif
  73. #endif // #if 0
  74. HRESULT LoadData (
  75. short a_Level,
  76. void *pTmpBuf,
  77. DWORD dwPropertiesReq,
  78. CInstance *pInstance
  79. );
  80. void SetPropertiesReq (
  81. CFrameworkQuery &Query,
  82. DWORD &dwPropertiesReq
  83. );
  84. protected:
  85. HRESULT EnumerateInstances (
  86. MethodContext *pMethodContext,
  87. long lFlags = 0L
  88. ) ;
  89. HRESULT GetObject (
  90. CInstance *pInstance,
  91. long lFlags,
  92. CFrameworkQuery &Query
  93. ) ;
  94. HRESULT ExecQuery (
  95. MethodContext *pMethodContext,
  96. CFrameworkQuery& Query,
  97. long lFlags = 0
  98. ) ;
  99. HRESULT DeleteInstance (
  100. const CInstance& Instance,
  101. long lFlags = 0L
  102. ) ;
  103. public:
  104. CSession (
  105. LPCWSTR lpwszClassName,
  106. LPCWSTR lpwszNameSpace
  107. ) ;
  108. virtual ~CSession () ;
  109. private:
  110. } ;
  111. #endif