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.

91 lines
1.5 KiB

  1. /******************************************************************
  2. ConnectionToSession.h --
  3. // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  4. *******************************************************************/
  5. #ifndef _CONNTOSESSION_H_
  6. #define _CONNTOSESSION_H_
  7. #include "Connshare.h"
  8. class CConnectionToSession : public Provider , public CConnShare
  9. {
  10. private:
  11. #ifdef NTONLY
  12. HRESULT EnumNTConnectionsFromComputerToShare (
  13. LPWSTR a_ComputerName,
  14. LPWSTR a_ShareName,
  15. MethodContext *pMethodContext,
  16. DWORD PropertiesReq
  17. );
  18. #endif
  19. #if 0
  20. #ifdef WIN9XONLY
  21. HRESULT Enum9XConnectionsFromComputerToShare (
  22. LPWSTR a_ComputerName,
  23. LPWSTR a_ShareName,
  24. MethodContext *pMethodContext,
  25. DWORD PropertiesReq
  26. );
  27. #endif
  28. #endif
  29. HRESULT GetSessionKeyVal (
  30. LPCWSTR a_Key,
  31. CHString &a_ComputerName,
  32. CHString &a_UserName
  33. );
  34. HRESULT LoadInstance (
  35. CInstance *pInstance,
  36. LPCWSTR a_ComputerName,
  37. LPCWSTR a_ShareName,
  38. CONNECTION_INFO *pBuf,
  39. DWORD dwPropertiesReq
  40. );
  41. protected:
  42. HRESULT EnumerateInstances (
  43. MethodContext *pMethodContext,
  44. long lFlags = 0L
  45. ) ;
  46. HRESULT GetObject (
  47. CInstance *pInstance,
  48. long lFlags,
  49. CFrameworkQuery &Query
  50. ) ;
  51. public:
  52. CConnectionToSession (
  53. LPCWSTR lpwszClassName,
  54. LPCWSTR lpwszNameSpace
  55. ) ;
  56. virtual ~CConnectionToSession () ;
  57. private:
  58. } ;
  59. #endif