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
1.8 KiB

  1. /******************************************************************
  2. Connection.h--
  3. // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  4. *******************************************************************/
  5. #ifndef _CONNECTION_H_
  6. #define _CONNECTION_H_
  7. #include "Connshare.h"
  8. class CConnection : 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 // #if 0
  29. // for this method only the type of the connection structure parameter changes based on the OS.
  30. HRESULT LoadInstance (
  31. CInstance *pInstance,
  32. LPCWSTR a_Share,
  33. LPCWSTR a_Computer,
  34. CONNECTION_INFO *pBuf,
  35. DWORD PropertiesReq
  36. );
  37. HRESULT OptimizeQuery (
  38. CHStringArray& a_ShareValues,
  39. CHStringArray& a_ComputerValues,
  40. MethodContext *pMethodContext,
  41. DWORD dwPropertiesReq
  42. );
  43. void SetPropertiesReq (
  44. CFrameworkQuery &Query,
  45. DWORD &PropertiesReq
  46. );
  47. protected:
  48. HRESULT EnumerateInstances (
  49. MethodContext *pMethodContext,
  50. long lFlags = 0L
  51. ) ;
  52. HRESULT GetObject (
  53. CInstance *pInstance,
  54. long lFlags,
  55. CFrameworkQuery &Query
  56. ) ;
  57. HRESULT ExecQuery (
  58. MethodContext *pMethodContext,
  59. CFrameworkQuery& Query,
  60. long lFlags = 0
  61. ) ;
  62. public:
  63. CConnection (
  64. LPCWSTR lpwszClassName,
  65. LPCWSTR lpwszNameSpace
  66. ) ;
  67. virtual ~CConnection () ;
  68. private:
  69. } ;
  70. #endif