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.

88 lines
1.5 KiB

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