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.

63 lines
1.3 KiB

  1. //=================================================================
  2. //
  3. // Win32_ControllerHasHub.h -- Controller to usb hub assoc
  4. //
  5. // Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  6. //
  7. //=================================================================
  8. #pragma once
  9. #include "assoc.h"
  10. #define MAX_ORS 3
  11. class CContHasHub : public CBinding
  12. {
  13. public:
  14. CContHasHub(
  15. LPCWSTR pwszClassName,
  16. LPCWSTR pwszNamespaceName,
  17. LPCWSTR pwszLeftClassName,
  18. LPCWSTR pwszRightClassName,
  19. LPCWSTR pwszLeftPropertyName,
  20. LPCWSTR pwszRightPropertyName,
  21. LPCWSTR pwszLeftBindingPropertyName,
  22. LPCWSTR pwszRightBindingPropertyName
  23. );
  24. virtual ~CContHasHub() {}
  25. protected:
  26. virtual bool AreRelated(
  27. const CInstance *pLeft,
  28. const CInstance *pRight
  29. );
  30. // We need to disable this
  31. virtual void MakeWhere(
  32. CHStringArray &sRightPaths,
  33. CHStringArray &sRightWheres
  34. ) {}
  35. // We need to disable this
  36. virtual HRESULT FindWhere(
  37. TRefPointerCollection<CInstance> &lefts,
  38. CHStringArray &sLeftWheres
  39. ) { return WBEM_S_NO_ERROR; }
  40. //-----------
  41. };